Class: OpenPayU::Models::Product
- Inherits:
-
Model
- Object
- Model
- OpenPayU::Models::Product
- Defined in:
- lib/openpayu/models/product.rb
Instance Attribute Summary (collapse)
-
- (Object) code
Returns the value of attribute code.
-
- (Object) discount
Returns the value of attribute discount.
-
- (Object) extra_info
Returns the value of attribute extra_info.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) quantity
Returns the value of attribute quantity.
-
- (Object) size
Returns the value of attribute size.
-
- (Object) unit_price
Returns the value of attribute unit_price.
-
- (Object) version
Returns the value of attribute version.
-
- (Object) weight
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
- (Object) code
Returns the value of attribute code
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def code @code end |
- (Object) discount
Returns the value of attribute discount
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def discount @discount end |
- (Object) extra_info
Returns the value of attribute extra_info
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def extra_info @extra_info end |
- (Object) name
Returns the value of attribute name
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def name @name end |
- (Object) quantity
Returns the value of attribute quantity
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def quantity @quantity end |
- (Object) size
Returns the value of attribute size
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def size @size end |
- (Object) unit_price
Returns the value of attribute unit_price
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def unit_price @unit_price end |
- (Object) version
Returns the value of attribute version
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def version @version end |
- (Object) weight
Returns the value of attribute weight
5 6 7 |
# File 'lib/openpayu/models/product.rb', line 5 def weight @weight end |