Class: MetaNexus::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region = 'eu', locale = 'en_GB') ⇒ Config

Returns a new instance of Config.



4
5
6
7
8
# File 'lib/meta_nexus/config.rb', line 4

def initialize(region = 'eu', locale = 'en_GB')
  @api_key ||= ENV['BNET_API_KEY']
  @region  ||= region
  @locale  ||= locale
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



2
3
4
# File 'lib/meta_nexus/config.rb', line 2

def api_key
  @api_key
end

#localeObject

Returns the value of attribute locale.



2
3
4
# File 'lib/meta_nexus/config.rb', line 2

def locale
  @locale
end

#regionObject

Returns the value of attribute region.



2
3
4
# File 'lib/meta_nexus/config.rb', line 2

def region
  @region
end