Sha256: 0abd0bbae78429a39e6cc0c420e7ba70d52e4fa392c8a56fdc62509dc32e9b19
Contents?: true
Size: 413 Bytes
Versions: 18
Compression:
Stored size: 413 Bytes
Contents
class Ey::Core::Client::Token < Ey::Core::Model identity :auth_id attribute :on_behalf_of def save! params = { "on_behalf_of" => { "id" => self.on_behalf_of.id, "type" => self.on_behalf_of.class.api_name, } } if new_record? merge_attributes(self.connection.create_token(params).body["token"]) else raise NotImplementedError # update end end end
Version data entries
18 entries across 18 versions & 2 rubygems