Class: Productive::BaseAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/productive/resources/base_account.rb

Direct Known Subclasses

Activity, Allocation, ApprovalStatus, ApprovalWorkflow, Attachment, Automation, AutomationRun, AutomationVersion, Bill, BillItem, BillabilityReport, Board, Booking, BookingItem, Comment, Company, ContactEntry, Contract, CustomField, CustomFieldOption, 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::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, Team, TeamMembership, Template, TimeEntry, TimeReport, Timer, Todo, TwoFactorAuthentication, Webhook, Widget, Workflow, WorkflowStatus

Constant Summary

Constants inherited from Base

Productive::Base::PER_PAGE

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.connection_options_setup(config)
  if config.connection_options[:headers].nil?
    config.connection_options[:headers] = { 'X-Organization-Id' => config. }
  else
    config.connection_options[:headers]['X-Organization-Id'] = config..to_s
  end

  super(config)
end