Class: BusinessCentral::Object::Companies

Inherits:
Base
  • Object
show all
Defined in:
lib/business_central/object/companies.rb

Constant Summary collapse

OBJECT =
'companies'

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#create, #destroy, #find_all, #find_by_id, #method_missing, #respond_to_missing?, #update, #where

Constructor Details

#initialize(client, **args) ⇒ Companies

Returns a new instance of Companies.



10
11
12
13
14
15
16
# File 'lib/business_central/object/companies.rb', line 10

def initialize(client, **args)
  super(client, **args.merge!({ object_name: OBJECT }))
  @object_path = [{
    path: OBJECT,
    id: nil
  }]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BusinessCentral::Object::Base