Class: OpenPayU::Models::Product

Inherits:
Model
  • Object
show all
Defined in:
lib/openpayu/models/product.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#all_errors

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

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def code
  @code
end

#discountObject

Returns the value of attribute discount.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def discount
  @discount
end

#extra_infoObject

Returns the value of attribute extra_info.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def extra_info
  @extra_info
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def name
  @name
end

#quantityObject

Returns the value of attribute quantity.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def quantity
  @quantity
end

#sizeObject

Returns the value of attribute size.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def size
  @size
end

#unit_priceObject

Returns the value of attribute unit_price.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def unit_price
  @unit_price
end

#versionObject

Returns the value of attribute version.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def version
  @version
end

#weightObject

Returns the value of attribute weight.



5
6
7
# File 'lib/openpayu/models/product.rb', line 5

def weight
  @weight
end