Class: OpenPayU::Models::Product
- Defined in:
- lib/openpayu/models/product.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#extra_info ⇒ Object
Returns the value of attribute extra_info.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#size ⇒ Object
Returns the value of attribute size.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
-
#version ⇒ Object
Returns the value of attribute version.
-
#weight ⇒ Object
Returns the value of attribute weight.
Attributes inherited from Model
Method Summary
Methods inherited from Model
#after_initialize, #all_objects_valid?, #attributes, define_reader, define_writer, #get_instance_values, has_many_objects, has_one_object, #initialize, #prepare_data, #prepare_keys, #to_flatten_hash, #to_json, #validate_all_objects
Constructor Details
This class inherits a constructor from OpenPayU::Models::Model
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def code @code end |
#discount ⇒ Object
Returns the value of attribute discount.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def discount @discount end |
#extra_info ⇒ Object
Returns the value of attribute extra_info.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def extra_info @extra_info end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def name @name end |
#quantity ⇒ Object
Returns the value of attribute quantity.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def quantity @quantity end |
#size ⇒ Object
Returns the value of attribute size.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def size @size end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def unit_price @unit_price end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def version @version end |
#weight ⇒ Object
Returns the value of attribute weight.
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def weight @weight end |