SYMBOL INDEX (857 symbols across 218 files) FILE: app/assets/javascripts/theme/bootstrap-alert.js function removeElement (line 56) | function removeElement() { FILE: app/assets/javascripts/theme/bootstrap-dropdown.js function clearMenus (line 103) | function clearMenus() { function getParent (line 109) | function getParent($this) { FILE: app/assets/javascripts/theme/bootstrap-scrollspy.js function ScrollSpy (line 29) | function ScrollSpy(element, options) { FILE: app/assets/javascripts/theme/bootstrap-tab.js function next (line 79) | function next() { FILE: app/assets/javascripts/theme/bootstrap-tooltip.js function removeWithAnimation (line 167) | function removeWithAnimation() { FILE: app/assets/javascripts/theme/html5shim.js function h (line 3) | function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("hea... function i (line 3) | function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a} function j (line 3) | function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f(... function k (line 3) | function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"... FILE: app/assets/javascripts/theme/jquery.flexslider-min.js function b (line 18) | function b(b){j=l?d-b.touches[0].pageY:d-b.touches[0].pageX;p=l?Math.abs... function g (line 18) | function g(){i.removeEventListener("touchmove", FILE: app/cells/web/admin/change_locale_link_cell.rb type Web (line 3) | module Web type Admin (line 4) | module Admin class ChangeLocaleLinkCell (line 6) | class ChangeLocaleLinkCell < BaseCell method render (line 7) | def render method name_link (line 15) | def name_link method locale_ru? (line 21) | def locale_ru? method url (line 25) | def url FILE: app/cells/web/base_cell.rb type Web (line 3) | module Web class BaseCell (line 5) | class BaseCell FILE: app/controllers/admin/base_controller.rb class Admin (line 3) | class Admin class BaseController (line 4) | class BaseController < ApplicationController method allow_only_admin (line 10) | def allow_only_admin method set_locale (line 14) | def set_locale method current_locale (line 18) | def current_locale FILE: app/controllers/admin/change_languages_controller.rb class Admin (line 3) | class Admin class ChangeLanguagesController (line 4) | class ChangeLanguagesController < Admin::BaseController method update (line 5) | def update method set_session_and_redirect (line 11) | def set_session_and_redirect FILE: app/controllers/admin/connections_controller.rb class Admin::ConnectionsController (line 3) | class Admin::ConnectionsController < Admin::BaseController method index (line 4) | def index method active (line 8) | def active method show (line 12) | def show method connections (line 18) | def connections method search (line 22) | def search FILE: app/controllers/admin/home_controller.rb class Admin::HomeController (line 3) | class Admin::HomeController < Admin::BaseController method index (line 4) | def index FILE: app/controllers/admin/options_controller.rb class Admin (line 3) | class Admin class OptionsController (line 4) | class OptionsController < Admin::BaseController method index (line 6) | def index method new (line 10) | def new method create (line 14) | def create method edit (line 23) | def edit; end method update (line 25) | def update method find_option (line 35) | def find_option method resource_params (line 39) | def resource_params FILE: app/controllers/admin/pay_systems_controller.rb class Admin::PaySystemsController (line 3) | class Admin::PaySystemsController < Admin::BaseController method index (line 6) | def index method show (line 10) | def show; end method new (line 12) | def new method create (line 16) | def create method edit (line 25) | def edit; end method update (line 27) | def update method load_resource (line 37) | def load_resource method resource_params (line 41) | def resource_params FILE: app/controllers/admin/plans_controller.rb class Admin (line 3) | class Admin class PlansController (line 4) | class PlansController < Admin::BaseController method index (line 6) | def index method new (line 10) | def new method create (line 14) | def create method edit (line 23) | def edit; end method update (line 25) | def update method destroy (line 33) | def destroy method find_plan (line 40) | def find_plan method resource_params (line 44) | def resource_params method option_prices_params (line 50) | def option_prices_params FILE: app/controllers/admin/profiles_controller.rb class Admin (line 3) | class Admin class ProfilesController (line 4) | class ProfilesController < Admin::BaseController method edit (line 7) | def edit; end method update (line 9) | def update method find_admin (line 20) | def find_admin method admin_params (line 24) | def admin_params FILE: app/controllers/admin/promos_controller.rb class Admin (line 3) | class Admin class PromosController (line 4) | class PromosController < Admin::BaseController method index (line 7) | def index method new (line 11) | def new method create (line 15) | def create method edit (line 24) | def edit; end method update (line 26) | def update method find_promo (line 36) | def find_promo method resource_params (line 40) | def resource_params method all_promoters_attributes (line 45) | def all_promoters_attributes FILE: app/controllers/admin/referrers_controller.rb class Admin::ReferrersController (line 3) | class Admin::ReferrersController < Admin::BaseController method index (line 4) | def index FILE: app/controllers/admin/servers_controller.rb class Admin (line 3) | class Admin class ServersController (line 4) | class ServersController < Admin::BaseController method index (line 7) | def index method show (line 11) | def show; end method new (line 13) | def new method create (line 17) | def create method edit (line 26) | def edit; end method update (line 28) | def update method destroy (line 36) | def destroy method generate_config (line 41) | def generate_config method load_resource (line 49) | def load_resource method resource_params (line 53) | def resource_params FILE: app/controllers/admin/traffic_reports_controller.rb class Admin::TrafficReportsController (line 3) | class Admin::TrafficReportsController < Admin::BaseController method index (line 4) | def index; end method users (line 6) | def users; end method date (line 8) | def date; end method servers (line 10) | def servers; end method traffic_reports (line 14) | def traffic_reports method report (line 19) | def report FILE: app/controllers/admin/transactions_controller.rb class Admin::TransactionsController (line 3) | class Admin::TransactionsController < Admin::BaseController method index (line 4) | def index method payments (line 8) | def payments method withdrawals (line 12) | def withdrawals method transactions (line 18) | def transactions FILE: app/controllers/admin/users_controller.rb class Admin (line 3) | class Admin class UsersController (line 4) | class UsersController < Admin::BaseController method index (line 10) | def index method payers (line 14) | def payers method this_month_payers (line 18) | def this_month_payers method show (line 22) | def show; end method new (line 24) | def new method create (line 28) | def create method edit (line 38) | def edit; end method update (line 40) | def update method withdraw (line 48) | def withdraw method prolongate (line 53) | def prolongate method payment (line 58) | def payment method emails_export (line 64) | def emails_export method enable_test_period (line 69) | def enable_test_period method disable_test_period (line 75) | def disable_test_period method force_disconnect (line 80) | def force_disconnect method find_user (line 87) | def find_user method users (line 91) | def users method search (line 95) | def search method search_params (line 100) | def search_params method payment_params (line 109) | def payment_params method resource_params (line 113) | def resource_params method days_number_prolongate (line 119) | def days_number_prolongate FILE: app/controllers/admins/sessions_controller.rb class Admins::SessionsController (line 3) | class Admins::SessionsController < Devise::SessionsController method after_sign_out_path_for (line 6) | def after_sign_out_path_for(_resource) method after_sign_in_path_for (line 10) | def after_sign_in_path_for(_resource) method resource_params (line 14) | def resource_params FILE: app/controllers/api/authentication_controller.rb type Api (line 3) | module Api class AuthenticationController (line 10) | class AuthenticationController < Api::BaseController method auth (line 13) | def auth FILE: app/controllers/api/base_controller.rb type Api (line 3) | module Api class BaseController (line 4) | class BaseController < ApplicationController method valid_api_call? (line 9) | def valid_api_call? method server (line 15) | def server method request_ip (line 19) | def request_ip method valid_signature? (line 23) | def valid_signature? method signature (line 27) | def signature FILE: app/controllers/api/connection_controller.rb type Api (line 3) | module Api class ConnectionController (line 6) | class ConnectionController < Api::BaseController method connect (line 9) | def connect method disconnect (line 17) | def disconnect method connector (line 25) | def connector method action_params (line 29) | def action_params FILE: app/controllers/api/servers_controller.rb type Api (line 3) | module Api class ServersController (line 8) | class ServersController < Api::BaseController method activate (line 10) | def activate method initialization_params (line 21) | def initialization_params FILE: app/controllers/application_controller.rb class ApplicationController (line 3) | class ApplicationController < ActionController::Base FILE: app/controllers/billing/base_controller.rb class Billing::BaseController (line 3) | class Billing::BaseController < ApplicationController method check_authorization (line 10) | def check_authorization FILE: app/controllers/billing/home_controller.rb class Billing::HomeController (line 3) | class Billing::HomeController < Billing::BaseController method index (line 4) | def index method transactions (line 12) | def transactions FILE: app/controllers/billing/merchant_controller.rb class Billing::MerchantController (line 3) | class Billing::MerchantController < Billing::BaseController method success (line 7) | def success method fail (line 11) | def fail method check_if_pay_system_is_enabled (line 17) | def check_if_pay_system_is_enabled method payment (line 21) | def payment FILE: app/controllers/billing/options_controller.rb class Billing::OptionsController (line 3) | class Billing::OptionsController < Billing::BaseController method index (line 4) | def index method create (line 9) | def create method destroy (line 17) | def destroy method update (line 22) | def update method toggle (line 28) | def toggle FILE: app/controllers/billing/payments_controller.rb class Billing::PaymentsController (line 3) | class Billing::PaymentsController < Billing::BaseController method index (line 4) | def index method new (line 8) | def new method create (line 13) | def create method merchant (line 18) | def merchant method default_price (line 25) | def default_price method payment_params (line 32) | def payment_params FILE: app/controllers/billing/paypal_controller.rb class Billing::PaypalController (line 3) | class Billing::PaypalController < Billing::MerchantController method result (line 6) | def result method notitication (line 19) | def notitication method payment_id (line 27) | def payment_id FILE: app/controllers/billing/promotions_controller.rb class Billing::PromotionsController (line 3) | class Billing::PromotionsController < Billing::BaseController method create (line 4) | def create method create_promotion (line 15) | def create_promotion FILE: app/controllers/billing/referrers_controller.rb class Billing::ReferrersController (line 3) | class Billing::ReferrersController < Billing::BaseController method index (line 4) | def index FILE: app/controllers/billing/robokassa_controller.rb class Billing::RobokassaController (line 5) | class Billing::RobokassaController < Billing::MerchantController method result (line 10) | def result method create_notification (line 21) | def create_notification method payment_id (line 25) | def payment_id FILE: app/controllers/billing/servers_controller.rb type Billing (line 3) | module Billing class ServersController (line 4) | class ServersController < Billing::BaseController method index (line 5) | def index method download_config (line 9) | def download_config method servers (line 18) | def servers FILE: app/controllers/billing/webmoney_controller.rb class Billing::WebmoneyController (line 5) | class Billing::WebmoneyController < Billing::MerchantController method result (line 10) | def result method create_notification (line 27) | def create_notification method payment_id (line 31) | def payment_id FILE: app/controllers/main_controller.rb class MainController (line 3) | class MainController < ApplicationController method index (line 4) | def index FILE: app/controllers/referrers_controller.rb class ReferrersController (line 3) | class ReferrersController < ApplicationController method set_referrer (line 4) | def set_referrer method reflink (line 11) | def reflink FILE: app/controllers/users/passwords_controller.rb class Users::PasswordsController (line 3) | class Users::PasswordsController < Devise::PasswordsController method after_sign_in_path_for (line 6) | def after_sign_in_path_for(_resource) method after_sending_reset_password_instructions_path_for (line 10) | def after_sending_reset_password_instructions_path_for(_resource_name) FILE: app/controllers/users/registrations_controller.rb class Users::RegistrationsController (line 3) | class Users::RegistrationsController < Devise::RegistrationsController method after_sign_up_path_for (line 8) | def after_sign_up_path_for(_resource) method after_sign_out_path_for (line 12) | def after_sign_out_path_for(_resource) method after_inactive_sign_up_path_for (line 16) | def after_inactive_sign_up_path_for(_resource) method set_additional_permitted_params (line 22) | def set_additional_permitted_params method resolve_layout (line 29) | def resolve_layout method current_referrer (line 37) | def current_referrer method add_referrer_id_to_params (line 41) | def add_referrer_id_to_params FILE: app/controllers/users/sessions_controller.rb class Users::SessionsController (line 3) | class Users::SessionsController < Devise::SessionsController method after_sign_out_path_for (line 6) | def after_sign_out_path_for(_resource) method after_sign_in_path_for (line 10) | def after_sign_in_path_for(_resource) method resource_params (line 15) | def resource_params FILE: app/decorators/admin/options_decorator.rb class Admin::OptionsDecorator (line 3) | class Admin::OptionsDecorator < Draper::Decorator method state (line 6) | def state method object_classes (line 14) | def object_classes method active? (line 20) | def active? FILE: app/decorators/option_attribute_decorator.rb class OptionAttributeDecorator (line 3) | class OptionAttributeDecorator < Draper::Decorator method initialize (line 6) | def initialize(name, values, current_value) method render (line 12) | def render method data_for_select (line 18) | def data_for_select FILE: app/decorators/pay_system_decorator.rb class PaySystemDecorator (line 3) | class PaySystemDecorator < Draper::Decorator method title (line 6) | def title method human_state (line 10) | def human_state FILE: app/decorators/promo_decorator.rb class PromoDecorator (line 3) | class PromoDecorator < Draper::Decorator method period (line 6) | def period method type (line 10) | def type method promoter_type (line 14) | def promoter_type method state (line 18) | def state method state_class (line 26) | def state_class FILE: app/decorators/transaction_decorator.rb class TransactionDecorator (line 3) | class TransactionDecorator < Draper::Decorator method amount (line 6) | def amount method date (line 10) | def date method description (line 14) | def description method user (line 22) | def user method amount_with_sign (line 28) | def amount_with_sign method payment? (line 38) | def payment? method withdrawal? (line 42) | def withdrawal? method free_payment? (line 46) | def free_payment? method positive_amount (line 50) | def positive_amount method negative_amount (line 56) | def negative_amount method amount_with_currency (line 62) | def amount_with_currency method free_amount (line 66) | def free_amount method transaction_user (line 72) | def transaction_user FILE: app/decorators/user_decorator.rb class UserDecorator (line 3) | class UserDecorator < Draper::Decorator method connection_status (line 6) | def connection_status method current_interval_payment_status (line 14) | def current_interval_payment_status method options (line 22) | def options method promotions (line 26) | def promotions method last_connect_details (line 32) | def last_connect_details FILE: app/exceptions/api_exception.rb class ApiException (line 3) | class ApiException < RuntimeError; end FILE: app/helpers/admin_helper.rb type AdminHelper (line 3) | module AdminHelper function menu_item (line 4) | def menu_item(title, path, fa_icon) function menu_item_with_sub (line 13) | def menu_item_with_sub(title, path, fa_icon) function sub_menu_item (line 27) | def sub_menu_item(title, path) function page_title (line 33) | def page_title(section, icon, path, &block) function sub_page_title (line 42) | def sub_page_title(title) function human_connection (line 46) | def human_connection(type) function human_traffic (line 58) | def human_traffic(traffic) function bytes_to_gigabytes (line 62) | def bytes_to_gigabytes(traffic) function descrete_statistic_values (line 66) | def descrete_statistic_values(sequence) function human_course (line 70) | def human_course(course) function can_be_prolongated? (line 74) | def can_be_prolongated?(user) function object_states_select_collection (line 78) | def object_states_select_collection(class_name) function background_highlight (line 84) | def background_highlight(user) function check_box_search (line 88) | def check_box_search(name) function change_locale_link (line 96) | def change_locale_link FILE: app/helpers/application_helper.rb type ApplicationHelper (line 3) | module ApplicationHelper function human_date (line 4) | def human_date(date, options = { time: true }) function human_price (line 9) | def human_price(price) function human_usd_amount (line 13) | def human_usd_amount(price) function prettify_number (line 17) | def prettify_number(number) FILE: app/helpers/main_helper.rb type MainHelper (line 3) | module MainHelper function was_connected? (line 4) | def was_connected? function enabled_options (line 8) | def enabled_options FILE: app/helpers/options_helper.rb type OptionsHelper (line 3) | module OptionsHelper function plans_option_price (line 7) | def plans_option_price(plan, option_code) function subscribe_option_button (line 11) | def subscribe_option_button(option) function unsubscribe_option_button (line 18) | def unsubscribe_option_button(option) function option_toggle_button (line 25) | def option_toggle_button(option) function toggle_state_title (line 29) | def toggle_state_title(option) function enabled_option? (line 33) | def enabled_option?(option) function option_attribute (line 37) | def option_attribute(name, attribute_hash, current_value) function option_button_to (line 41) | def option_button_to(_option, url, method, options = {}) function option_settings (line 47) | def option_settings(option) function current_attribute_value (line 55) | def current_attribute_value(option, name) FILE: app/helpers/promos_helper.rb type PromosHelper (line 3) | module PromosHelper function promo_types (line 4) | def promo_types function promoter_types (line 10) | def promoter_types function select_options (line 16) | def select_options(options) FILE: app/helpers/servers_helper.rb type ServersHelper (line 3) | module ServersHelper function server_country_name (line 4) | def server_country_name(server) function countries_for_select (line 8) | def countries_for_select FILE: app/inputs/datepicker_input.rb class DatepickerInput (line 3) | class DatepickerInput < SimpleForm::Inputs::Base method input (line 4) | def input FILE: app/mailers/user_connection_config_mailer.rb class UserConnectionConfigMailer (line 3) | class UserConnectionConfigMailer < ActionMailer::Base method notify (line 6) | def notify(user:) method server_config (line 14) | def server_config method server (line 18) | def server FILE: app/mailers/user_mailer.rb class UserMailer (line 3) | class UserMailer < ActionMailer::Base method funds_recieved (line 7) | def funds_recieved(user, amount) method balance_withdrawal (line 13) | def balance_withdrawal(user, amount) method could_not_withdraw_funds (line 19) | def could_not_withdraw_funds(user, amount) method test_period_enabled (line 25) | def test_period_enabled(user) method unpaid_user_notification (line 32) | def unpaid_user_notification(user) FILE: app/models/ability.rb class Ability (line 3) | class Ability method initialize (line 6) | def initialize(user) FILE: app/models/admin.rb class Admin (line 3) | class Admin < ActiveRecord::Base FILE: app/models/authenticator.rb class Authenticator (line 3) | class Authenticator method initialize (line 4) | def initialize(login, password, hostname) method valid_credentials? (line 12) | def valid_credentials? method find_user (line 18) | def find_user method user_active? (line 22) | def user_active? method vpn_enabled? (line 26) | def vpn_enabled? method test_period_active? (line 30) | def test_period_active? method valid_password? (line 34) | def valid_password? method billing_credentials_valid? (line 38) | def billing_credentials_valid? method vpn_credentials_valid? (line 42) | def vpn_credentials_valid? method not_connected_yet? (line 46) | def not_connected_yet? method server_belongs_to_users_plan? (line 50) | def server_belongs_to_users_plan? FILE: app/models/concerns/last_days_filterable.rb type LastDaysFilterable (line 3) | module LastDaysFilterable function in_days (line 7) | def self.in_days(number_of_days) FILE: app/models/connection.rb class Connection (line 3) | class Connection < ActiveRecord::Base method active (line 9) | def self.active FILE: app/models/connections/connect.rb class Connect (line 3) | class Connect < Connection FILE: app/models/connections/disconnect.rb class Disconnect (line 3) | class Disconnect < Connection FILE: app/models/connector.rb class Connector (line 3) | class Connector method connected? (line 6) | def self.connected?(user) method first_time_connected? (line 10) | def self.first_time_connected?(user) method has_previous_connects? (line 14) | def self.has_previous_connects?(user) method connected_now? (line 18) | def self.connected_now?(user) method initialize (line 22) | def initialize(opts) method invoke (line 31) | def invoke method find_user (line 41) | def find_user method connect? (line 45) | def connect? method connect! (line 51) | def connect! method disconnect! (line 60) | def disconnect! FILE: app/models/option.rb class Option (line 3) | class Option < ActiveRecord::Base method tunable_attributes (line 27) | def tunable_attributes method default_attributes (line 34) | def default_attributes method hook (line 41) | def hook(user) FILE: app/models/options/attributes/proxy.rb type Options (line 3) | module Options type Attributes (line 4) | module Attributes class Proxy (line 5) | class Proxy method initialize (line 6) | def initialize method attributes (line 10) | def attributes method default (line 16) | def default FILE: app/models/options/hooks/proxy.rb type Options (line 3) | module Options type Hooks (line 4) | module Hooks class Proxy (line 5) | class Proxy method initialize (line 8) | def initialize(user, option) method connect (line 13) | def connect method disconnect (line 19) | def disconnect FILE: app/models/pay_system.rb class PaySystem (line 3) | class PaySystem < ActiveRecord::Base FILE: app/models/payment.rb class Payment (line 3) | class Payment < ActiveRecord::Base method convert_and_save_usd_amount (line 28) | def convert_and_save_usd_amount method increase_balance (line 35) | def increase_balance method try_to_withdraw_funds (line 39) | def try_to_withdraw_funds FILE: app/models/plan.rb class Plan (line 3) | class Plan < ActiveRecord::Base method regular? (line 14) | def regular? method to_s (line 18) | def to_s method option_price (line 22) | def option_price(option_code) FILE: app/models/plan_has_server.rb class PlanHasServer (line 3) | class PlanHasServer < ActiveRecord::Base FILE: app/models/promo.rb class Promo (line 3) | class Promo < ActiveRecord::Base method promoter (line 29) | def promoter FILE: app/models/promoter.rb class Promoter (line 3) | class Promoter method type (line 5) | def type method apply (line 9) | def apply(_promo, _base_value) method attributes (line 13) | def attributes FILE: app/models/promoters/discount_promoter.rb class DiscountPromoter (line 3) | class DiscountPromoter < Promoter method type (line 5) | def type method apply (line 9) | def apply(promo, base_value) method attributes (line 20) | def attributes FILE: app/models/promoters_repository.rb class PromotersRepository (line 3) | class PromotersRepository method clean (line 5) | def clean method all (line 9) | def all method types (line 13) | def types method persist (line 17) | def persist(promoter) method find_by_type (line 21) | def find_by_type(type_name) method index (line 27) | def index FILE: app/models/promotion.rb class Promotion (line 3) | class Promotion < ActiveRecord::Base method apply (line 13) | def apply(amount) FILE: app/models/proxy.rb type Proxy (line 3) | module Proxy function table_name_prefix (line 4) | def self.table_name_prefix FILE: app/models/proxy/connect.rb class Proxy::Connect (line 3) | class Proxy::Connect < ActiveRecord::Base FILE: app/models/proxy/node.rb class Proxy::Node (line 3) | class Proxy::Node < ActiveRecord::Base FILE: app/models/referrer.rb type Referrer (line 3) | module Referrer function table_name_prefix (line 4) | def self.table_name_prefix FILE: app/models/referrer/account.rb type Referrer (line 3) | module Referrer class Account (line 4) | class Account method initialize (line 5) | def initialize(referrer_id) method balance (line 10) | def balance method operations (line 14) | def operations method referrals_total_amount (line 19) | def referrals_total_amount FILE: app/models/referrer/reward.rb class Referrer::Reward (line 3) | class Referrer::Reward < ActiveRecord::Base FILE: app/models/server.rb class Server (line 3) | class Server < ActiveRecord::Base method to_s (line 33) | def to_s method generate_auth_key (line 39) | def generate_auth_key FILE: app/models/server/signature.rb class Server (line 10) | class Server class Signature (line 11) | class Signature method initialize (line 16) | def initialize(server, request_params) method valid? (line 21) | def valid? method signature (line 31) | def signature method clean_params (line 35) | def clean_params FILE: app/models/server_config.rb class ServerConfig (line 5) | class ServerConfig method initialize (line 8) | def initialize method append_line (line 12) | def append_line(line) method to_text (line 16) | def to_text FILE: app/models/test_period.rb class TestPeriod (line 3) | class TestPeriod method initialize (line 4) | def initialize(user) method enable! (line 8) | def enable! method disable! (line 12) | def disable! method enabled? (line 16) | def enabled? method test_period_until (line 20) | def test_period_until method length (line 26) | def length FILE: app/models/traffic_report.rb class TrafficReport (line 3) | class TrafficReport method initialize (line 10) | def initialize(attributes = {}) method result (line 16) | def result method date_from (line 20) | def date_from method date_to (line 24) | def date_to method persisted? (line 29) | def persisted? FILE: app/models/traffic_reports/date_traffic_report.rb class DateTrafficReport (line 3) | class DateTrafficReport < TrafficReport method build_report (line 6) | def build_report FILE: app/models/traffic_reports/server_traffic_report.rb class ServerTrafficReport (line 3) | class ServerTrafficReport < TrafficReport method build_report (line 6) | def build_report FILE: app/models/traffic_reports/user_traffic_report.rb class UserTrafficReport (line 3) | class UserTrafficReport < TrafficReport method build_report (line 6) | def build_report FILE: app/models/transaction.rb class Transaction (line 3) | class Transaction method all (line 8) | def all method user_transactions (line 12) | def user_transactions(user) method cast_collection_to_transactions (line 18) | def cast_collection_to_transactions(payments, withdrawals) method initialize (line 27) | def initialize(id, object) method amount (line 32) | def amount FILE: app/models/user.rb class User (line 3) | class User < ActiveRecord::Base method to_s (line 62) | def to_s method referrer_account (line 66) | def referrer_account method test_period (line 70) | def test_period method connected? (line 74) | def connected? method paid? (line 78) | def paid? method current_billing_interval_length (line 82) | def current_billing_interval_length method last_connect (line 86) | def last_connect method last_connect_date (line 90) | def last_connect_date method last_withdrawal (line 94) | def last_withdrawal method last_withdrawal_date (line 98) | def last_withdrawal_date method next_withdrawal_date (line 102) | def next_withdrawal_date method increase_balance (line 106) | def increase_balance(amount) method decrease_balance (line 111) | def decrease_balance(amount) method service_enabled? (line 116) | def service_enabled? method total_amount (line 120) | def total_amount method interval_prolongation (line 126) | def interval_prolongation method selected_plan_is_regular (line 130) | def selected_plan_is_regular method generate_reflink (line 134) | def generate_reflink method generate_vpn_credentials (line 138) | def generate_vpn_credentials method add_to_newsletter (line 143) | def add_to_newsletter FILE: app/models/user_option.rb class UserOption (line 3) | class UserOption < ActiveRecord::Base method toggle! (line 27) | def toggle! FILE: app/models/withdrawal.rb class Withdrawal (line 3) | class Withdrawal < ActiveRecord::Base method prolongation_days (line 16) | def prolongation_days method decrease_user_balance (line 22) | def decrease_user_balance method balance_greater_than_amount (line 26) | def balance_greater_than_amount FILE: app/models/withdrawal_prolongation.rb class WithdrawalProlongation (line 3) | class WithdrawalProlongation < ActiveRecord::Base FILE: app/operations/ops/admin/user/base.rb type Ops (line 4) | module Ops type Admin (line 5) | module Admin type User (line 6) | module User class Base (line 7) | class Base method initialize (line 10) | def initialize(params:) method call (line 14) | def call FILE: app/operations/ops/admin/user/create.rb type Ops (line 3) | module Ops type Admin (line 4) | module Admin type User (line 5) | module User class Create (line 7) | class Create < Base method call (line 8) | def call method build_created_user! (line 18) | def build_created_user! method user (line 23) | def user method error_result (line 27) | def error_result method success_result (line 31) | def success_result FILE: app/ransackers/base_ransacker.rb class BaseRansacker (line 3) | class BaseRansacker method initialize (line 7) | def initialize(table) method call (line 11) | def self.call(parent) FILE: app/ransackers/never_paid_users_ransacker.rb class NeverPaidUsersRansacker (line 3) | class NeverPaidUsersRansacker < BaseRansacker method eq (line 6) | def eq(value) method unpaid_user_ids (line 10) | def unpaid_user_ids method apply_ransacker? (line 14) | def apply_ransacker?(value) FILE: app/serializers/admin/users_serializer.rb class Admin::UsersSerializer (line 3) | class Admin::UsersSerializer method initialize (line 6) | def initialize(collection, format) method emails (line 11) | def emails method csv? (line 17) | def csv? FILE: app/serializers/api/connect_serializer.rb class Api::ConnectSerializer (line 3) | class Api::ConnectSerializer < Api::ConnectionSerializer FILE: app/serializers/api/connection_serializer.rb class Api::ConnectionSerializer (line 3) | class Api::ConnectionSerializer < ActiveModel::Serializer method options (line 7) | def options method option_attributes (line 11) | def option_attributes method common_name (line 15) | def common_name FILE: app/serializers/api/disconnect_serializer.rb class Api::DisconnectSerializer (line 3) | class Api::DisconnectSerializer < Api::ConnectionSerializer FILE: app/services/dto/admin/dashboard.rb type Dto (line 3) | module Dto type Admin (line 4) | module Admin class Dashboard (line 7) | class Dashboard < Dto::Base method collect_data (line 13) | def collect_data method fetch_courses (line 20) | def fetch_courses method fetch_income (line 28) | def fetch_income method fetch_customers (line 35) | def fetch_customers method fetch_traffic (line 42) | def fetch_traffic method fetch_course (line 49) | def fetch_course(from_currency, for_currency) method courses_updated_at (line 53) | def courses_updated_at method converted_discrete_traffic (line 57) | def converted_discrete_traffic method bytes_converter (line 64) | def bytes_converter(value) method discrete_payments (line 68) | def discrete_payments method discrete_traffic (line 72) | def discrete_traffic method discrete_customers (line 76) | def discrete_customers FILE: app/services/dto/admin/discrete_base.rb type Dto (line 3) | module Dto type Admin (line 4) | module Admin class DiscreteBase (line 6) | class DiscreteBase < Dto::Base method initialize (line 7) | def initialize(number_of_days:) method amounts (line 11) | def amounts method add_zero_amounts_for_dates (line 18) | def add_zero_amounts_for_dates method date_by_number_days_ago (line 25) | def date_by_number_days_ago(number) method values_by_days (line 29) | def values_by_days FILE: app/services/dto/admin/discrete_customers_registrations.rb type Dto (line 3) | module Dto type Admin (line 4) | module Admin class DiscreteCustomersRegistrations (line 6) | class DiscreteCustomersRegistrations < Dto::Admin::DiscreteBase method values_by_days (line 9) | def values_by_days FILE: app/services/dto/admin/discrete_payments.rb type Dto (line 3) | module Dto type Admin (line 4) | module Admin class DiscretePayments (line 6) | class DiscretePayments < Dto::Admin::DiscreteBase method values_by_days (line 9) | def values_by_days FILE: app/services/dto/admin/discrete_traffic.rb type Dto (line 3) | module Dto type Admin (line 4) | module Admin class DiscreteTraffic (line 6) | class DiscreteTraffic < Dto::Admin::DiscreteBase method values_by_days (line 9) | def values_by_days FILE: app/services/dto/base.rb type Dto (line 3) | module Dto class Base (line 5) | class Base method initialize (line 6) | def initialize method collect_data (line 12) | def collect_data FILE: app/services/forced_disconnect.rb class ForcedDisconnect (line 3) | class ForcedDisconnect method initialize (line 4) | def initialize(user) method invoke (line 8) | def invoke method disconnect! (line 14) | def disconnect! method connected? (line 18) | def connected? method server (line 22) | def server FILE: app/services/newsletter_manager.rb class NewsletterManager (line 3) | class NewsletterManager method initialize (line 6) | def initialize method add_to_list (line 10) | def add_to_list(email, list_name) method list_id (line 16) | def list_id(list_name) method list_ids_mapping (line 20) | def list_ids_mapping method all_clients_list_id (line 26) | def all_clients_list_id FILE: app/services/option/activation_price_calc.rb class Option::ActivationPriceCalc (line 3) | class Option::ActivationPriceCalc method activation_price (line 5) | def activation_price(user, option) method billing_interval_percent_left (line 9) | def billing_interval_percent_left(user) method days_left_to_withdrawal (line 15) | def days_left_to_withdrawal(days_passed) FILE: app/services/option/activator.rb class Option::Activator (line 3) | class Option::Activator method run (line 6) | def self.run(user, option_code) method initialize (line 11) | def initialize(user, option_code) method activate_option (line 16) | def activate_option method activation_price (line 28) | def activation_price method enable_option (line 32) | def enable_option method withdraw_funds_for_option (line 38) | def withdraw_funds_for_option FILE: app/services/option/deactivator.rb class Option::Deactivator (line 3) | class Option::Deactivator method run (line 4) | def self.run(user, option_id) FILE: app/services/proxy/fetchers/base.rb type Proxy (line 3) | module Proxy type Fetchers (line 4) | module Fetchers class Base (line 5) | class Base method fetch (line 6) | def self.fetch method fetch_proxy_list (line 11) | def fetch_proxy_list FILE: app/services/proxy/fetchers/free_proxy_list_net/row_parser.rb type Proxy (line 3) | module Proxy type Fetchers (line 4) | module Fetchers type FreeProxyListNet (line 5) | module FreeProxyListNet class RowParser (line 6) | class RowParser method initialize (line 7) | def initialize(row) method to_proxy (line 11) | def to_proxy method host (line 17) | def host method port (line 21) | def port method country (line 25) | def country method protocol (line 29) | def protocol method anonymity (line 33) | def anonymity method location (line 37) | def location; end method bandwidth (line 39) | def bandwidth; end method ping (line 41) | def ping; end FILE: app/services/proxy/fetchers/free_proxy_list_net/web_parser.rb type Proxy (line 6) | module Proxy type Fetchers (line 7) | module Fetchers type FreeProxyListNet (line 8) | module FreeProxyListNet class WebParser (line 9) | class WebParser < ::Proxy::Fetchers::Base method initialize (line 13) | def initialize method fetch_proxy_list (line 18) | def fetch_proxy_list method fetch_proxies (line 24) | def fetch_proxies method parse_proxies_from (line 31) | def parse_proxies_from(page) method parse (line 39) | def parse(row) FILE: app/services/proxy/fetchers/free_proxy_lists/row_parser.rb type Proxy (line 3) | module Proxy type Fetchers (line 4) | module Fetchers type FreeProxyLists (line 5) | module FreeProxyLists class RowParser (line 6) | class RowParser method initialize (line 7) | def initialize(row) method to_proxy (line 11) | def to_proxy method host (line 17) | def host method port (line 28) | def port method country (line 32) | def country method protocol (line 36) | def protocol method anonymity (line 40) | def anonymity method location (line 44) | def location method bandwidth (line 48) | def bandwidth method ping (line 52) | def ping FILE: app/services/proxy/fetchers/free_proxy_lists/web_parser.rb type Proxy (line 6) | module Proxy type Fetchers (line 7) | module Fetchers type FreeProxyLists (line 8) | module FreeProxyLists class WebParser (line 9) | class WebParser < ::Proxy::Fetchers::Base method initialize (line 13) | def initialize method fetch_proxy_list (line 18) | def fetch_proxy_list method fetch_proxies (line 24) | def fetch_proxies method parse_proxies_from (line 31) | def parse_proxies_from(page) method parse (line 39) | def parse(row, _proxies) FILE: app/services/proxy/proxy_dto.rb type Proxy (line 3) | module Proxy class ProxyDto (line 4) | class ProxyDto method initialize (line 7) | def initialize(host, port, country, protocol = nil, bandwidth = nil,... method to_hash (line 16) | def to_hash FILE: app/services/proxy/rater.rb type Proxy (line 3) | module Proxy class Rater (line 4) | class Rater method initialize (line 7) | def initialize(user, option) method find_best (line 12) | def find_best FILE: app/services/proxy/repository.rb type Proxy (line 3) | module Proxy class Repository (line 4) | class Repository method persist (line 5) | def self.persist(proxies) method build_node (line 14) | def self.build_node(proxy) method clear_nodes (line 18) | def self.clear_nodes FILE: app/services/proxy/updater.rb class Proxy::Updater (line 3) | class Proxy::Updater method update (line 4) | def self.update(fetcher_class) FILE: app/services/referrer/reward_calculator.rb type Referrer (line 3) | module Referrer class RewardCalculator (line 4) | class RewardCalculator method initialize (line 5) | def initialize(payment) method amount (line 9) | def amount method percent (line 15) | def percent FILE: app/services/referrer/rewarder.rb type Referrer (line 3) | module Referrer class Rewarder (line 4) | class Rewarder method add_funds (line 5) | def self.add_funds(withdrawal, amount) method initialize (line 10) | def initialize(withdrawal, amount) method create_reward (line 15) | def create_reward method referrer (line 27) | def referrer method referrer? (line 31) | def referrer? FILE: app/services/server_config_builder.rb class ServerConfigBuilder (line 4) | class ServerConfigBuilder method initialize (line 7) | def initialize(server:) method to_text (line 11) | def to_text method client_crt (line 17) | def client_crt method server_crt (line 22) | def server_crt method client_key (line 26) | def client_key method erb_render_sample_config (line 30) | def erb_render_sample_config method sample_config (line 34) | def sample_config method sample_config_path (line 38) | def sample_config_path FILE: app/services/unpaid_users_notificator.rb class UnpaidUsersNotificator (line 3) | class UnpaidUsersNotificator method notify_all (line 6) | def notify_all method users_to_notify (line 14) | def users_to_notify method notify (line 18) | def notify(user) FILE: app/services/withdrawal_amount_calculator.rb class WithdrawalAmountCalculator (line 3) | class WithdrawalAmountCalculator method initialize (line 6) | def initialize(user) method amount_to_withdraw (line 10) | def amount_to_withdraw method total_amount (line 18) | def total_amount method base_amount (line 22) | def base_amount method options_amount (line 26) | def options_amount FILE: app/services/withdrawer.rb class Withdrawer (line 3) | class Withdrawer method mass_withdrawal (line 7) | def mass_withdrawal method single_withdraw (line 15) | def single_withdraw(user) method try_to_withdraw (line 26) | def try_to_withdraw method withdraw_funds (line 37) | def withdraw_funds method add_funds_to_referrer (line 45) | def add_funds_to_referrer method increment_or_reset_counter (line 50) | def increment_or_reset_counter method notify_user_if_needed (line 58) | def notify_user_if_needed method can_not_withdraw (line 62) | def can_not_withdraw method successful_withdrawal? (line 66) | def successful_withdrawal? method first_notification? (line 70) | def first_notification? FILE: app/uploaders/config_uploader.rb class ConfigUploader (line 3) | class ConfigUploader < CarrierWave::Uploader::Base method store_dir (line 18) | def store_dir FILE: app/workers/add_user_to_newsletter_worker.rb class AddUserToNewsletterWorker (line 3) | class AddUserToNewsletterWorker method perform (line 7) | def perform(email, list_name) FILE: app/workers/can_not_withdraw_notification_worker.rb class CanNotWithdrawNotificationWorker (line 3) | class CanNotWithdrawNotificationWorker method perform (line 7) | def perform(user_id, amount) FILE: app/workers/create_user_mail_worker.rb class CreateUserMailWorker (line 3) | class CreateUserMailWorker method perform (line 7) | def perform(user_id) FILE: app/workers/decrease_balance_mail_worker.rb class DecreaseBalanceMailWorker (line 3) | class DecreaseBalanceMailWorker method perform (line 7) | def perform(amount, user_id) FILE: app/workers/increase_balance_mail_worker.rb class IncreaseBalanceMailWorker (line 3) | class IncreaseBalanceMailWorker method perform (line 7) | def perform(amount, user_id) FILE: app/workers/refresh_proxy_list_worker.rb class RefreshProxyListWorker (line 3) | class RefreshProxyListWorker method perform (line 6) | def perform FILE: app/workers/unpaid_user_notification_worker.rb class UnpaidUserNotificationWorker (line 3) | class UnpaidUserNotificationWorker method perform (line 7) | def perform(user_id) FILE: app/workers/update_courses_worker.rb class UpdateCoursesWorker (line 3) | class UpdateCoursesWorker method perform (line 6) | def perform FILE: app/workers/withdrawals_worker.rb class WithdrawalsWorker (line 3) | class WithdrawalsWorker method perform (line 6) | def perform FILE: config/application.rb type Smartvpn (line 10) | module Smartvpn class Application (line 11) | class Application < Rails::Application FILE: config/clock.rb type Clockwork (line 12) | module Clockwork FILE: db/migrate/20130409190444_create_posts.rb class CreatePosts (line 1) | class CreatePosts < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130421110154_devise_create_users.rb class DeviseCreateUsers (line 1) | class DeviseCreateUsers < ActiveRecord::Migration method up (line 2) | def self.up method down (line 42) | def self.down FILE: db/migrate/20130421110911_create_admins.rb class CreateAdmins (line 1) | class CreateAdmins < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130501081828_add_fields_to_user.rb class AddFieldsToUser (line 1) | class AddFieldsToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130501083417_create_plans.rb class CreatePlans (line 1) | class CreatePlans < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130504105921_create_payments.rb class CreatePayments (line 1) | class CreatePayments < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130504144707_create_pay_systems.rb class CreatePaySystems (line 1) | class CreatePaySystems < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130504150703_add_description_to_pay_system.rb class AddDescriptionToPaySystem (line 1) | class AddDescriptionToPaySystem < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130505183444_create_withdrawals.rb class CreateWithdrawals (line 1) | class CreateWithdrawals < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130810125453_create_servers.rb class CreateServers (line 1) | class CreateServers < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20130925101441_add_vpn_login_and_vpn_password_to_user.rb class AddVpnLoginAndVpnPasswordToUser (line 1) | class AddVpnLoginAndVpnPasswordToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20131005133458_create_connections.rb class CreateConnections (line 1) | class CreateConnections < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20131013140201_add_state_to_user.rb class AddStateToUser (line 1) | class AddStateToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140105134117_add_special_and_disabled_to_plan.rb class AddSpecialAndDisabledToPlan (line 1) | class AddSpecialAndDisabledToPlan < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140112113325_create_plan_has_servers.rb class CreatePlanHasServers (line 1) | class CreatePlanHasServers < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140112123216_remove_plan_id_from_server.rb class RemovePlanIdFromServer (line 1) | class RemovePlanIdFromServer < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140112180259_add_tunnelblick_bundle_and_ios_bundle_and_linux_bundle_to_server.rb class AddTunnelblickBundleAndIosBundleAndLinuxBundleToServer (line 1) | class AddTunnelblickBundleAndIosBundleAndLinuxBundleToServer < ActiveRec... method change (line 2) | def change FILE: db/migrate/20140116192804_add_cant_withdraw_counter_to_user.rb class AddCantWithdrawCounterToUser (line 1) | class AddCantWithdrawCounterToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140125084325_replace_configs_by_one_universal.rb class ReplaceConfigsByOneUniversal (line 1) | class ReplaceConfigsByOneUniversal < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140202164317_create_promos.rb class CreatePromos (line 1) | class CreatePromos < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140202164614_create_promotions.rb class CreatePromotions (line 1) | class CreatePromotions < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140202175203_add_attributes_to_promo.rb class AddAttributesToPromo (line 1) | class AddAttributesToPromo < ActiveRecord::Migration method up (line 2) | def up method down (line 7) | def down FILE: db/migrate/20140203184711_add_state_to_promo.rb class AddStateToPromo (line 1) | class AddStateToPromo < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140207114415_add_promo_id_user_id_uniqueness_index_to_promo.rb class AddPromoIdUserIdUniquenessIndexToPromo (line 1) | class AddPromoIdUserIdUniquenessIndexToPromo < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140227113644_add_state_to_pay_system.rb class AddStateToPaySystem (line 1) | class AddStateToPaySystem < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140301125212_add_currency_to_pay_system.rb class AddCurrencyToPaySystem (line 1) | class AddCurrencyToPaySystem < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140301130258_add_usd_amount_to_payment.rb class AddUsdAmountToPayment (line 1) | class AddUsdAmountToPayment < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140506135933_create_withdrawal_prolongations.rb class CreateWithdrawalProlongations (line 1) | class CreateWithdrawalProlongations < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140507085918_add_manual_payment_to_payment.rb class AddManualPaymentToPayment (line 1) | class AddManualPaymentToPayment < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140518132954_create_options.rb class CreateOptions (line 1) | class CreateOptions < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140518133314_create_plan_option_table.rb class CreatePlanOptionTable (line 1) | class CreatePlanOptionTable < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140518134712_add_state_to_option.rb class AddStateToOption (line 1) | class AddStateToOption < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140525091015_add_option_prices_to_plan.rb class AddOptionPricesToPlan (line 1) | class AddOptionPricesToPlan < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140525103921_create_options_users.rb class CreateOptionsUsers (line 1) | class CreateOptionsUsers < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140727094748_add_reflink_to_user.rb class AddReflinkToUser (line 1) | class AddReflinkToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140728204118_add_referrer_id_to_user.rb class AddReferrerIdToUser (line 1) | class AddReferrerIdToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140801123341_create_referrer_rewards.rb class CreateReferrerRewards (line 1) | class CreateReferrerRewards < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140805112916_generate_reflink_to_old_users.rb class GenerateReflinkToOldUsers (line 1) | class GenerateReflinkToOldUsers < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140817131003_create_proxy_nodes.rb class CreateProxyNodes (line 1) | class CreateProxyNodes < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140819160419_remove_options_users_table.rb class RemoveOptionsUsersTable (line 1) | class RemoveOptionsUsersTable < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140819160716_create_user_options.rb class CreateUserOptions (line 1) | class CreateUserOptions < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140823162252_create_proxy_connects.rb class CreateProxyConnects (line 1) | class CreateProxyConnects < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20140823164144_add_option_attributes_to_connect.rb class AddOptionAttributesToConnect (line 1) | class AddOptionAttributesToConnect < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150104180714_add_state_to_user_option.rb class AddStateToUserOption (line 1) | class AddStateToUserOption < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150109161843_add_protocol_to_server.rb class AddProtocolToServer (line 1) | class AddProtocolToServer < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150109164839_add_port_to_server.rb class AddPortToServer (line 1) | class AddPortToServer < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150110141211_add_country_code_to_server.rb class AddCountryCodeToServer (line 1) | class AddCountryCodeToServer < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150125133216_add_test_period_enabled_to_user.rb class AddTestPeriodEnabledToUser (line 1) | class AddTestPeriodEnabledToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20150125141501_add_test_period_started_at_to_user.rb class AddTestPeriodStartedAtToUser (line 1) | class AddTestPeriodStartedAtToUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20181014150549_add_default_user.rb class AddDefaultUser (line 1) | class AddDefaultUser < ActiveRecord::Migration method change (line 2) | def change FILE: db/migrate/20190122184018_add_pki_to_server.rb class AddPkiToServer (line 1) | class AddPkiToServer < ActiveRecord::Migration method change (line 2) | def change FILE: db/seeds/01_options.rb function i2p (line 5) | def i2p function proxy (line 14) | def proxy FILE: db/seeds/02_plans.rb function plan_params (line 5) | def plan_params(merge_params) function standard_plan (line 9) | def standard_plan FILE: db/seeds/04_default_user.rb function user (line 5) | def user FILE: db/seeds/07_servers.rb function main_server (line 17) | def main_server FILE: lib/bytes_converter.rb class BytesConverter (line 3) | class BytesConverter method bytes_to_kilobytes (line 5) | def bytes_to_kilobytes(bytes) method kilobytes_to_megabytes (line 9) | def kilobytes_to_megabytes(kbytes) method megabytes_to_gigabytes (line 13) | def megabytes_to_gigabytes(mbytes) method bytes_to_gigabytes (line 17) | def bytes_to_gigabytes(bytes) method prettify_float (line 21) | def prettify_float(number) FILE: lib/currencies/course.rb type Currencies (line 6) | module Currencies class Course (line 7) | class Course method update_courses (line 14) | def update_courses method fetch_course_from_web (line 22) | def fetch_course_from_web(from, to) method save_course (line 28) | def save_course(from, to, course) method persist_update_date (line 32) | def persist_update_date method updated_at (line 36) | def updated_at method redis (line 40) | def redis method initialize (line 45) | def initialize(from_currency, to_currency) method get (line 50) | def get method fetch_from_redis (line 60) | def fetch_from_redis method parse_from_web (line 65) | def parse_from_web FILE: lib/currencies/course_converter.rb type Currencies (line 3) | module Currencies class CourseConverter (line 4) | class CourseConverter method initialize (line 5) | def initialize(options) method convert_amount (line 11) | def convert_amount method course (line 15) | def course FILE: lib/exceptions/admin_access_denied_exception.rb class AdminAccessDeniedException (line 3) | class AdminAccessDeniedException < SmartvpnException; end FILE: lib/exceptions/api_exception.rb class ApiException (line 3) | class ApiException < SmartvpnException; end FILE: lib/exceptions/billing_exception.rb class BillingException (line 3) | class BillingException < SmartvpnException; end FILE: lib/exceptions/dto_exception.rb class DtoException (line 3) | class DtoException < SmartvpnException; end FILE: lib/exceptions/not_implemented_exception.rb class NotImplementedException (line 3) | class NotImplementedException < SmartvpnException; end FILE: lib/exceptions/smartvpn_exception.rb class SmartvpnException (line 3) | class SmartvpnException < StandardError; end FILE: lib/exceptions/unauthorized_exception.rb class UnauthorizedException (line 3) | class UnauthorizedException < SmartvpnException; end FILE: lib/exceptions/withdrawer_exception.rb class WithdrawerException (line 3) | class WithdrawerException < SmartvpnException; end FILE: lib/random_string.rb class RandomString (line 3) | class RandomString method generate (line 6) | def self.generate(length = DEFAULT_LENGTH) FILE: lib/signer.rb class Signer (line 5) | class Signer method sign_hash (line 6) | def self.sign_hash(hash, key) method hashify_string (line 10) | def self.hashify_string(string) FILE: spec/controllers/application_controller_spec.rb function index (line 7) | def index FILE: spec/support/capybara_helper.rb function visit_sign_in_page (line 3) | def visit_sign_in_page function sign_in (line 7) | def sign_in(user = nil, password = nil) function last_email (line 19) | def last_email function extract_token_from_email (line 23) | def extract_token_from_email(token_name, current_email) function sign_in_admin (line 28) | def sign_in_admin FILE: spec/support/controller_macros.rb type Requests (line 3) | module Requests type ControllerMacros (line 4) | module ControllerMacros function login_admin (line 5) | def login_admin function login_user (line 12) | def login_user FILE: spec/support/json_helpers.rb type Requests (line 3) | module Requests type JsonHelpers (line 4) | module JsonHelpers function json (line 5) | def json