Class: Opera::MobileStore::Build::UsesSDK
- Inherits:
-
Object
- Object
- Opera::MobileStore::Build::UsesSDK
- Includes:
- ActiveModel::Model, ActiveModel::Serialization, InspectableAttributes
- Defined in:
- lib/opera/mobile_store/build.rb
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Methods included from InspectableAttributes
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max.
174 175 176 |
# File 'lib/opera/mobile_store/build.rb', line 174 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
174 175 176 |
# File 'lib/opera/mobile_store/build.rb', line 174 def min @min end |
#target ⇒ Object
Returns the value of attribute target.
174 175 176 |
# File 'lib/opera/mobile_store/build.rb', line 174 def target @target end |
Instance Method Details
#attributes ⇒ Object
176 177 178 179 180 181 182 |
# File 'lib/opera/mobile_store/build.rb', line 176 def attributes [:min, :target, :max].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 |