class Ey::Core::Client::Token
Public Instance Methods
save!()
click to toggle source
# File lib/ey-core/models/token.rb, line 11 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