lib/rhoconnect/client.rb in rhoconnect-5.5.0.22 vs lib/rhoconnect/client.rb in rhoconnect-5.5.2
- old
+ new
@@ -4,12 +4,10 @@
class Client < StoreOrm
field :device_type, :string
field :device_push_type, :string
field :device_pin, :string
field :device_port, :string
- field :device_app_id, :string
- field :device_app_version, :string
field :phone_id, :string
field :user_id, :string
field :last_sync, :datetime
field :app_id, :string
attr_accessor :source_name
@@ -130,17 +128,17 @@
self.put_value(:schema_sha1,s.get_value(:schema_sha1))
end
end
def update_fields(params)
- [:device_type, :device_push_type,:device_pin,:device_port,:phone_id, :device_app_id, :device_app_version].each do |setting|
+ [:device_type, :device_push_type,:device_pin,:device_port,:phone_id].each do |setting|
self.send "#{setting}=".to_sym, params[setting].to_s if params[setting]
end
end
private
def self.validate_attributes(params)
raise ArgumentError.new('Missing required attribute source_name') unless params[:source_name]
end
end
-end
+end
\ No newline at end of file