class OptimizePlayer::Account
Public Instance Methods
delete(opts={})
click to toggle source
# File lib/optimize_player/account.rb, line 17 def delete(opts={}) response = context.client.send_request(context.entity_name, :delete) refresh_from(response) self end
Also aliased as: destroy
save(opts={})
click to toggle source
# File lib/optimize_player/account.rb, line 3 def save(opts={}) attrs = {} @new_data.each do |n| attrs[n] = @data[n] end attrs = attrs.merge(opts) if attrs.any? response = context.client.send_request(context.entity_name, :patch, attrs) refresh_from(response) end self end