Class: Teemill::CustomProduct

Inherits:
BaseResource show all
Includes:
LegacyAuthenticatedRequestHandler
Defined in:
lib/resources/custom_product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LegacyAuthenticatedRequestHandler

#authenticated_request_headers, #base_url

Methods included from AuthenticatedRequestHandler

#authenticated_request_headers, #base_url, #send_get_request, #send_post_request, #send_request

Methods inherited from BaseResource

#assign_properties, create

Instance Attribute Details

#coloursObject

Returns the value of attribute colours.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def colours
  @colours
end

#idObject

Returns the value of attribute id.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def id
  @id
end

#imageObject

Returns the value of attribute image.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def image
  @image
end

#nameObject

Returns the value of attribute name.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def name
  @name
end

#priceObject

Returns the value of attribute price.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def price
  @price
end

#urlObject

Returns the value of attribute url.


8
9
10
# File 'lib/resources/custom_product.rb', line 8

def url
  @url
end

Instance Method Details

#create_resource_urlObject


10
11
12
# File 'lib/resources/custom_product.rb', line 10

def create_resource_url
  '/product/create'
end