Class: ShopifyAPI::LineItem::Property
- Defined in:
- lib/shopify_api/resources/line_item.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Property
constructor
A new instance of Property.
Methods inherited from Base
activate_session, api_version, api_version=, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=
Methods included from Countable
Constructor Details
#initialize(*args) ⇒ Property
Returns a new instance of Property.
4 5 6 7 8 9 10 11 |
# File 'lib/shopify_api/resources/line_item.rb', line 4 def initialize(*args) attributes = args[0] || {} persisted = args[1] || false super rescue NameError attributes = attributes.to_hash self end |