class Opera::MobileStore::ProductLocalization

Attributes

language_code[RW]

All attributes are Read-Only…

long_description[RW]

All attributes are Read-Only…

short_description[RW]

All attributes are Read-Only…

title[RW]

All attributes are Read-Only…

Public Instance Methods

attributes() click to toggle source
# File lib/opera/mobile_store/product_localization.rb, line 17
def attributes
  [
    :language_code, :title, :short_description, :long_description
  ].inject({}) do |hash, field_name|
    field_value = self.public_send field_name
    hash[field_name.to_s] = field_value if field_value.present?
    hash
  end
end