class Opera::MobileStore::Category

Attributes

code[RW]

All attributes are Read-Only…

id[RW]

All attributes are Read-Only…

name[RW]

All attributes are Read-Only…

Public Instance Methods

attributes() click to toggle source
# File lib/opera/mobile_store/category.rb, line 16
def attributes
  [:id, :code, :name].inject({}) do |hash, field_name|
    field_value = self.public_send field_name
    hash[field_name.to_s] = field_value unless field_value.nil?
    hash
  end
end