Class: ShopifySalesChannel::Store

Inherits:
Object
  • Object
show all
Includes:
Integrations
Defined in:
lib/shopify_sales_channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Integrations

#add_tag_to_order, #check_products, #count_products, #get_access_token, #get_order, #get_store_details, included, #set_webhooks, #sync_orders

Constructor Details

#initialize(options = {}) ⇒ Store

Returns a new instance of Store.



21
22
23
24
25
# File 'lib/shopify_sales_channel.rb', line 21

def initialize(options={})
  self.url = options[:url]
  self.access_token = options[:access_token]
  self.code = options[:code]
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def access_token
  @access_token
end

#client_idObject

Returns the value of attribute client_id.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def client_secret
  @client_secret
end

#codeObject

Returns the value of attribute code.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def code
  @code
end

#urlObject

Returns the value of attribute url.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def url
  @url
end

#webhook_addressObject

Returns the value of attribute webhook_address.



17
18
19
# File 'lib/shopify_sales_channel.rb', line 17

def webhook_address
  @webhook_address
end