Class: Conekta::Details

Inherits:
Resource show all
Defined in:
lib/conekta/details.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

Attributes inherited from ConektaObject

#values

Method Summary

Methods inherited from Resource

#_url, _url, #create_member_with_relation, #initialize, underscored_class

Methods inherited from ConektaObject

#class_name, class_name, #create_attr, #first, #initialize, #inspect, #last, #load_from, #set_val, #to_s, #unset_key

Constructor Details

This class inherits a constructor from Conekta::Resource

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



3
4
5
# File 'lib/conekta/details.rb', line 3

def category
  @category
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/conekta/details.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/conekta/details.rb', line 3

def name
  @name
end

#quantityObject

Returns the value of attribute quantity.



3
4
5
# File 'lib/conekta/details.rb', line 3

def quantity
  @quantity
end

#skuObject

Returns the value of attribute sku.



3
4
5
# File 'lib/conekta/details.rb', line 3

def sku
  @sku
end

#unit_priceObject

Returns the value of attribute unit_price.



3
4
5
# File 'lib/conekta/details.rb', line 3

def unit_price
  @unit_price
end