Class: EcwidApi::ProductType

Inherits:
Entity
  • Object
show all
Defined in:
lib/ecwid_api/product_type.rb

Instance Method Summary collapse

Methods inherited from Entity

#==, #[], #assign_attributes, #assign_raw_attributes, define_accessor, #destroy!, ecwid_accessor, ecwid_reader, ecwid_writer, #initialize, #marshal_dump, #marshal_load, #save, #to_hash, #to_json, #update_attributes, #update_raw_attributes, #url

Constructor Details

This class inherits a constructor from EcwidApi::Entity

Instance Method Details

#attributesObject

Public: Returns a Array of ‘ProductTypeAttribute` objects



12
13
14
# File 'lib/ecwid_api/product_type.rb', line 12

def attributes
  @attributes ||= data["attributes"].map { |attribute| ProductTypeAttribute.new(attribute) }
end