Class: Productive::BaseAccount
- Defined in:
- lib/productive/resources/base_account.rb
Direct Known Subclasses
Activity, Allocation, ApprovalPolicy, ApprovalPolicyAssignment, ApprovalStatus, ApprovalWorkflow, Attachment, Automation, AutomationRun, AutomationVersion, Bill, BillItem, BillabilityReport, Board, Booking, BookingItem, Comment, Company, ContactEntry, Contract, CustomDomain, CustomField, CustomFieldOption, CustomFieldSection, Dashboard, Deal, DealCostRate, DealStatus, DeletedItem, Discussion, DocumentStyle, DocumentType, Email, Entitlement, Event, ExchangeRate, Expense, Filter, Holiday, HolidayCalendar, Integration, Invoice, InvoiceAttribution, LineItem, LostReason, Membership, OrganizationInvoice, OrganizationSubscription, Overhead, Payment, PaymentReminder, PaymentReminderSequence, Person, Pipeline, Price, Project, ProjectAssignment, ProjectPreference, Pulse, PurchaseOrder, RateCard, ReportCategory, Reports::BookingReport, Reports::BudgetReport, Reports::CompanyReport, Reports::DealFunnelReport, Reports::DealReport, Reports::EntitlementReport, Reports::ExpenseReport, Reports::FinancialItemReport, Reports::InvoiceReport, Reports::LineItemReport, Reports::NewDealReport, Reports::NewSalaryReport, Reports::NewTimeReport, Reports::PaymentReport, Reports::PayrollItemReport, Reports::PersonReport, Reports::PriceReport, Reports::ProjectReport, Reports::PurchaseOrderReport, Reports::SalaryReport, Reports::ServiceReport, Reports::TaskReport, Reports::TimeEntryReport, Reports::TimeReport, Role, Salary, Section, Service, ServiceAssignment, ServiceType, ServiceTypeAssignment, Subsidiary, Tag, Task, TaskDependency, TaskList, TaxRate, Team, TeamMembership, Template, TimeEntry, TimeReport, Timer, Todo, TwoFactorAuthentication, Webhook, Widget, Workflow, WorkflowStatus
Constant Summary
Constants inherited from Base
Class Method Summary collapse
Methods inherited from Base
connection_object, connection_object=, connection_options, connection_options=, paginator_setup, query_builder_setup, reset_connection, setup, site, site=, site_setup
Class Method Details
.connection_options_setup(config) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/productive/resources/base_account.rb', line 3 def self.(config) if config.[:headers].nil? config.[:headers] = { 'X-Organization-Id' => config.account_id } else config.[:headers]['X-Organization-Id'] = config.account_id.to_s end super(config) end |