class Scalingo::Billing::Profile
Public Instance Methods
create(payload = {}, headers = nil, &block)
click to toggle source
# File lib/scalingo/billing/profile.rb, line 18 def create(payload = {}, headers = nil, &block) data = {profile: payload} response = connection.post( "profiles", data, headers, &block ) unpack(:profile) { response } end
show(headers = nil, &block)
click to toggle source
# File lib/scalingo/billing/profile.rb, line 5 def show(headers = nil, &block) data = nil response = connection.get( "profile", data, headers, &block ) unpack(:profile) { response } end
Also aliased as: self
update(id, payload = {}, headers = nil, &block)
click to toggle source
# File lib/scalingo/billing/profile.rb, line 31 def update(id, payload = {}, headers = nil, &block) data = {profile: payload} response = connection.put( "profiles/#{id}", data, headers, &block ) unpack(:profile) { response } end