Class: MfCloud::Invoice::Api::Office
- Defined in:
- lib/mf_cloud/invoice/api/office.rb
Constant Summary collapse
- PATH =
'office'
Instance Method Summary collapse
Methods inherited from Base
#all, allowed_methods, collection_class, collection_name, #create, #delete, #initialize, model_class, model_name
Constructor Details
This class inherits a constructor from MfCloud::Invoice::Api::Base
Instance Method Details
#get ⇒ Object
7 8 9 10 |
# File 'lib/mf_cloud/invoice/api/office.rb', line 7 def get response_body = @client.get(PATH) MfCloud::Invoice::Model::Office.new(response_body) end |
#update(params) ⇒ Object
12 13 14 15 |
# File 'lib/mf_cloud/invoice/api/office.rb', line 12 def update(params) response_body = @client.put(PATH, office: params) MfCloud::Invoice::Model::Office.new(response_body) end |