Class: MooMoo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/moo_moo/config.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Config) initialize



11
12
13
14
15
16
# File 'lib/moo_moo/config.rb', line 11

def initialize
  @host     = default_option("host") || 'horizon.opensrs.net'
  @key      = default_option("key")
  @username = default_option("username")
  @port     = default_option("port")
end

Instance Attribute Details

- (Object) host

Returns the value of attribute host



5
6
7
# File 'lib/moo_moo/config.rb', line 5

def host
  @host
end

- (Object) key

Returns the value of attribute key



6
7
8
# File 'lib/moo_moo/config.rb', line 6

def key
  @key
end

- (Object) logger

Returns the value of attribute logger



9
10
11
# File 'lib/moo_moo/config.rb', line 9

def logger
  @logger
end

- (Object) port

Returns the value of attribute port



8
9
10
# File 'lib/moo_moo/config.rb', line 8

def port
  @port
end

- (Object) username

Returns the value of attribute username



7
8
9
# File 'lib/moo_moo/config.rb', line 7

def username
  @username
end