Class: Api4Over::PrintProducts

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/api4over/print_products.rb

Instance Method Summary collapse

Instance Method Details

#retrieve_categories(path:, parameters: {}, mode: 'test') ⇒ Object



17
18
19
20
21
# File 'lib/api4over/print_products.rb', line 17

def retrieve_categories(path:, parameters: {}, mode: 'test')
  self.class.base_uri (mode == 'test' ? 'https://sandbox-api.4over.com' : 'https://api.4over.com')
  response = self.class.get(path, parameters)
  response.parsed_response
end

#retrieve_option_groups(path:, parameters: {}, mode: 'test') ⇒ Object



23
24
25
26
27
# File 'lib/api4over/print_products.rb', line 23

def retrieve_option_groups(path:, parameters: {}, mode: 'test')
  self.class.base_uri (mode == 'test' ? 'https://sandbox-api.4over.com' : 'https://api.4over.com')
  response = self.class.get(path, parameters)
  response.parsed_response
end

#retrieve_product_feeds(path:, parameters: {}, mode: 'test') ⇒ Object



29
30
31
32
33
# File 'lib/api4over/print_products.rb', line 29

def retrieve_product_feeds(path:, parameters: {}, mode: 'test')
  self.class.base_uri (mode == 'test' ? 'https://sandbox-api.4over.com' : 'https://api.4over.com')
  response = self.class.get(path, parameters)
  response.parsed_response
end

#retrieve_products(path:, parameters: {}, mode: 'test') ⇒ Object



11
12
13
14
15
# File 'lib/api4over/print_products.rb', line 11

def retrieve_products(path:, parameters: {}, mode: 'test')
  self.class.base_uri (mode == 'test' ? 'https://sandbox-api.4over.com' : 'https://api.4over.com')
  response = self.class.get(path, parameters)
  response.parsed_response
end

#retrieve_quantity_discounts(path:, parameters: {}, mode: 'test') ⇒ Object



35
36
37
38
39
# File 'lib/api4over/print_products.rb', line 35

def retrieve_quantity_discounts(path:, parameters: {}, mode: 'test')
  self.class.base_uri (mode == 'test' ? 'https://sandbox-api.4over.com' : 'https://api.4over.com')
  response = self.class.get(path, parameters)
  response.parsed_response
end