Class: Wes::Data::API::Model::Billing

Inherits:
Base
  • Object
show all
Defined in:
lib/wes/data/api/model/billing.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wes::Data::API::Model::Base

Instance Method Details

#update(changes) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/wes/data/api/model/billing.rb', line 8

def update(changes)
  route = [routes.billing, id].join("/")
  attributes = client.put(
    route, attributes.to_h.merge(changes)
  ).first

  self
end