Class: Opera::MobileStore::ProductLocalization
- Inherits:
-
Object
- Object
- Opera::MobileStore::ProductLocalization
- Includes:
- ActiveModel::Model, ActiveModel::Serialization, InspectableAttributes
- Defined in:
- lib/opera/mobile_store/product_localization.rb
Instance Attribute Summary collapse
-
#language_code ⇒ Object
All attributes are Read-Only…
-
#long_description ⇒ Object
All attributes are Read-Only…
-
#short_description ⇒ Object
All attributes are Read-Only…
-
#title ⇒ Object
All attributes are Read-Only…
Instance Method Summary collapse
Methods included from InspectableAttributes
Instance Attribute Details
#language_code ⇒ Object
All attributes are Read-Only…
12 13 14 |
# File 'lib/opera/mobile_store/product_localization.rb', line 12 def language_code @language_code end |
#long_description ⇒ Object
All attributes are Read-Only…
12 13 14 |
# File 'lib/opera/mobile_store/product_localization.rb', line 12 def long_description @long_description end |
#short_description ⇒ Object
All attributes are Read-Only…
12 13 14 |
# File 'lib/opera/mobile_store/product_localization.rb', line 12 def short_description @short_description end |
#title ⇒ Object
All attributes are Read-Only…
12 13 14 |
# File 'lib/opera/mobile_store/product_localization.rb', line 12 def title @title end |
Instance Method Details
#attributes ⇒ Object
17 18 19 20 21 22 23 24 25 |
# 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 |