Class: RocketTracker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rocket_tracker/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
17
# File 'lib/rocket_tracker/configuration.rb', line 12

def initialize
  @host = "rtrack.ru"
  @proto = "http"
  @port = 80
  @envs = %w(development production)
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/rocket_tracker/configuration.rb', line 3

def api_key
  @api_key
end

#envsObject

Returns the value of attribute envs.



9
10
11
# File 'lib/rocket_tracker/configuration.rb', line 9

def envs
  @envs
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/rocket_tracker/configuration.rb', line 5

def host
  @host
end

#ipObject

Returns the value of attribute ip.



6
7
8
# File 'lib/rocket_tracker/configuration.rb', line 6

def ip
  @ip
end

#js_endpointObject



20
21
22
# File 'lib/rocket_tracker/configuration.rb', line 20

def js_endpoint
  @js_endpoint ||= get_endpoint
end

#js_keyObject

Returns the value of attribute js_key.



4
5
6
# File 'lib/rocket_tracker/configuration.rb', line 4

def js_key
  @js_key
end

#portObject

Returns the value of attribute port.



8
9
10
# File 'lib/rocket_tracker/configuration.rb', line 8

def port
  @port
end

#projectObject

Returns the value of attribute project.



10
11
12
# File 'lib/rocket_tracker/configuration.rb', line 10

def project
  @project
end

#protoObject

Returns the value of attribute proto.



7
8
9
# File 'lib/rocket_tracker/configuration.rb', line 7

def proto
  @proto
end