Module: Moneybird::Traits::AdministrationService
- Included in:
- Service::Contact, Service::CustomField, Service::Document::GeneralDocument, Service::Document::GeneralJournalDocument, Service::Document::PurchaseInvoice, Service::Document::Receipt, Service::Document::TypelessDocument, Service::DocumentStyle, Service::Estimate, Service::ExternalSalesInvoice, Service::FinancialAccount, Service::FinancialMutation, Service::Identity, Service::LedgerAccount, Service::Payment, Service::Product, Service::RecurringSalesInvoice, Service::SalesInvoice, Service::TaxRate, Service::Webhook, Service::Workflow
- Defined in:
- lib/moneybird/traits/administration_service.rb
Instance Attribute Summary collapse
-
#administration_id ⇒ Object
readonly
Returns the value of attribute administration_id.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#preloaded_data ⇒ Object
readonly
Returns the value of attribute preloaded_data.
Instance Method Summary collapse
Instance Attribute Details
#administration_id ⇒ Object (readonly)
Returns the value of attribute administration_id.
4 5 6 |
# File 'lib/moneybird/traits/administration_service.rb', line 4 def administration_id @administration_id end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/moneybird/traits/administration_service.rb', line 4 def client @client end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/moneybird/traits/administration_service.rb', line 4 def @options end |
#preloaded_data ⇒ Object (readonly)
Returns the value of attribute preloaded_data.
4 5 6 |
# File 'lib/moneybird/traits/administration_service.rb', line 4 def preloaded_data @preloaded_data end |
Instance Method Details
#initialize(client, administration_id, options = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/moneybird/traits/administration_service.rb', line 6 def initialize(client, administration_id, = {}) @client = client @administration_id = administration_id @preloaded_data = .delete(:preloaded_data) @options = end |