Class: Opera::MobileStore::Build::UsesSDK

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serialization, InspectableAttributes
Defined in:
lib/opera/mobile_store/build.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from InspectableAttributes

#inspect

Instance Attribute Details

#maxObject

Returns the value of attribute max.



174
175
176
# File 'lib/opera/mobile_store/build.rb', line 174

def max
  @max
end

#minObject

Returns the value of attribute min.



174
175
176
# File 'lib/opera/mobile_store/build.rb', line 174

def min
  @min
end

#targetObject

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

#attributesObject



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