Class: Tangocard::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_uriObject

Returns the value of attribute base_uri.


13
14
15
# File 'lib/tangocard.rb', line 13

def base_uri
  @base_uri
end

#cacheObject

Returns the value of attribute cache.


13
14
15
# File 'lib/tangocard.rb', line 13

def cache
  @cache
end

#default_brandsObject

Returns the value of attribute default_brands.


13
14
15
# File 'lib/tangocard.rb', line 13

def default_brands
  @default_brands
end

#keyObject

Returns the value of attribute key.


13
14
15
# File 'lib/tangocard.rb', line 13

def key
  @key
end

#local_imagesObject

Returns the value of attribute local_images.


13
14
15
# File 'lib/tangocard.rb', line 13

def local_images
  @local_images
end

#loggerObject

Returns the value of attribute logger.


13
14
15
# File 'lib/tangocard.rb', line 13

def logger
  @logger
end

#nameObject

Returns the value of attribute name.


13
14
15
# File 'lib/tangocard.rb', line 13

def name
  @name
end

#sku_blacklistObject

Returns the value of attribute sku_blacklist.


13
14
15
# File 'lib/tangocard.rb', line 13

def sku_blacklist
  @sku_blacklist
end

#use_cacheObject

Returns the value of attribute use_cache.


13
14
15
# File 'lib/tangocard.rb', line 13

def use_cache
  @use_cache
end