Class: Tangocard::Configuration
- Inherits:
-
Object
- Object
- Tangocard::Configuration
- Defined in:
- lib/tangocard.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#default_brands ⇒ Object
Returns the value of attribute default_brands.
-
#key ⇒ Object
Returns the value of attribute key.
-
#local_images ⇒ Object
Returns the value of attribute local_images.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sku_blacklist ⇒ Object
Returns the value of attribute sku_blacklist.
-
#use_cache ⇒ Object
Returns the value of attribute use_cache.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/tangocard.rb', line 16 def initialize self.name = nil self.key = nil self.base_uri = 'https://sandbox.tangocard.com' self.default_brands = [] self.local_images = {} self.sku_blacklist = [] self.use_cache = true self.cache = ActiveSupport::Cache::MemoryStore.new self.logger = Logger.new(STDOUT) end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def base_uri @base_uri end |
#cache ⇒ Object
Returns the value of attribute cache.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def cache @cache end |
#default_brands ⇒ Object
Returns the value of attribute default_brands.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def default_brands @default_brands end |
#key ⇒ Object
Returns the value of attribute key.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def key @key end |
#local_images ⇒ Object
Returns the value of attribute local_images.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def local_images @local_images end |
#logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def logger @logger end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def name @name end |
#sku_blacklist ⇒ Object
Returns the value of attribute sku_blacklist.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def sku_blacklist @sku_blacklist end |
#use_cache ⇒ Object
Returns the value of attribute use_cache.
13 14 15 |
# File 'lib/tangocard.rb', line 13 def use_cache @use_cache end |