Class: Taobao::Property
Instance Attribute Summary collapse
-
#multi ⇒ Object
readonly
Returns the value of attribute multi.
-
#must ⇒ Object
readonly
Returns the value of attribute must.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(response) ⇒ Property
constructor
A new instance of Property.
Methods included from Util
Constructor Details
#initialize(response) ⇒ Property
Returns a new instance of Property.
6 7 8 9 10 11 12 |
# File 'lib/taobao/property.rb', line 6 def initialize(response) @response = response to_object response @values = get_values raise Taobao::IncorrectProperty, 'Incorrect property data' unless @name convert_data_types end |
Instance Attribute Details
#multi ⇒ Object (readonly)
Returns the value of attribute multi.
2 3 4 |
# File 'lib/taobao/property.rb', line 2 def multi @multi end |
#must ⇒ Object (readonly)
Returns the value of attribute must.
2 3 4 |
# File 'lib/taobao/property.rb', line 2 def must @must end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/taobao/property.rb', line 2 def name @name end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
2 3 4 |
# File 'lib/taobao/property.rb', line 2 def pid @pid end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
2 3 4 |
# File 'lib/taobao/property.rb', line 2 def values @values end |