Class: FacebookCommerce::Api

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

Defined Under Namespace

Classes: UnexpectedHttpResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = super.config) ⇒ Api



50
51
52
53
54
# File 'lib/facebook_commerce.rb', line 50

def initialize(config = super.config)
  @cms_id = config.fetch(:cms_id)
  @access_token = config.fetch(:access_token)
  @logger = config[:logger] || Logger.new(STDOUT)
end

Instance Attribute Details

#access_tokenObject (readonly)



44
45
46
# File 'lib/facebook_commerce.rb', line 44

def access_token
  @access_token
end

#cms_idObject (readonly)

Returns the value of attribute cms_id.



45
46
47
# File 'lib/facebook_commerce.rb', line 45

def cms_id
  @cms_id
end

#loggerObject

Returns the value of attribute logger.



46
47
48
# File 'lib/facebook_commerce.rb', line 46

def logger
  @logger
end