Class: Fixably::Device
- Inherits:
-
ApplicationResource
- Object
- ActiveResource::Base
- ApplicationResource
- Fixably::Device
- Defined in:
- lib/fixably/resources/device.rb
Instance Attribute Summary
Attributes inherited from ApplicationResource
Instance Method Summary collapse
Methods inherited from ApplicationResource
Methods included from Authorization
Methods included from LoadFromResponse
Methods included from Encoding
Methods included from Actions
#destroy, included, #save, #save!
Constructor Details
This class inherits a constructor from Fixably::ApplicationResource
Instance Method Details
#either_serial_number_or_imei_set ⇒ Object
21 22 23 24 25 |
# File 'lib/fixably/resources/device.rb', line 21 def either_serial_number_or_imei_set return if serial_number.present? || imei_number1.present? errors.add(:base, "Either serial number or IMEI must be present") end |