Sha256: d81c477c7cf4cb11f4b451b407072c717c281d217e835c868b31bc2feb2cdd08
Contents?: true
Size: 376 Bytes
Versions: 18
Compression:
Stored size: 376 Bytes
Contents
class G5Updatable::ClientUpdater def initialize(g5_client) @g5_client = g5_client end def update attributes = @g5_client.client_hash.dup attributes.delete(:locations) G5Updatable::Client. find_or_initialize_by(uid: attributes[:uid]). update_attributes!(urn: attributes[:urn], name: attributes[:name], properties: attributes) end end
Version data entries
18 entries across 18 versions & 1 rubygems