Class: Tripletexer

Inherits:
Object
  • Object
show all
Defined in:
lib/tripletexer.rb,
lib/tripletexer/version.rb

Defined Under Namespace

Modules: Endpoints, Errors, FormatHelpers Classes: APIClient

Constant Summary collapse

VERSION =
'0.2.1'
API_VERSION =
'2.3.1'

Instance Method Summary collapse

Constructor Details

#initialize(api_client: Tripletexer::APIClient.new, session_token: nil) ⇒ Tripletexer

Returns a new instance of Tripletexer.



53
54
55
56
# File 'lib/tripletexer.rb', line 53

def initialize(api_client: Tripletexer::APIClient.new, session_token: nil)
  @api_client = api_client
  @api_client.session_token = session_token if session_token
end

Instance Method Details

#activityObject



58
59
60
# File 'lib/tripletexer.rb', line 58

def activity
  Tripletexer::Endpoints::Activity.new(api_client)
end

#addressObject



62
63
64
# File 'lib/tripletexer.rb', line 62

def address
  Tripletexer::Endpoints::Address.new(api_client)
end

#companyObject



66
67
68
# File 'lib/tripletexer.rb', line 66

def company
  Tripletexer::Endpoints::Company.new(api_client)
end

#contactObject



70
71
72
# File 'lib/tripletexer.rb', line 70

def contact
  Tripletexer::Endpoints::Contact.new(api_client)
end

#countryObject



74
75
76
# File 'lib/tripletexer.rb', line 74

def country
  Tripletexer::Endpoints::Country.new(api_client)
end

#crmObject



130
131
132
# File 'lib/tripletexer.rb', line 130

def crm
  Tripletexer::Endpoints::Crm.new(api_client)
end

#currencyObject



78
79
80
# File 'lib/tripletexer.rb', line 78

def currency
  Tripletexer::Endpoints::Currency.new(api_client)
end

#customerObject



82
83
84
# File 'lib/tripletexer.rb', line 82

def customer
  Tripletexer::Endpoints::Customer.new(api_client)
end

#departmentObject



86
87
88
# File 'lib/tripletexer.rb', line 86

def department
  Tripletexer::Endpoints::Department.new(api_client)
end

#employeeObject



90
91
92
# File 'lib/tripletexer.rb', line 90

def employee
  Tripletexer::Endpoints::Employee.new(api_client)
end

#inventoryObject



94
95
96
# File 'lib/tripletexer.rb', line 94

def inventory
  Tripletexer::Endpoints::Inventory.new(api_client)
end

#invoiceObject



98
99
100
# File 'lib/tripletexer.rb', line 98

def invoice
  Tripletexer::Endpoints::Invoice.new(api_client)
end

#ledgerObject



102
103
104
# File 'lib/tripletexer.rb', line 102

def ledger
  Tripletexer::Endpoints::Ledger.new(api_client)
end

#orderObject



106
107
108
# File 'lib/tripletexer.rb', line 106

def order
  Tripletexer::Endpoints::Order.new(api_client)
end

#productObject



110
111
112
# File 'lib/tripletexer.rb', line 110

def product
  Tripletexer::Endpoints::Product.new(api_client)
end

#projectObject



114
115
116
# File 'lib/tripletexer.rb', line 114

def project
  Tripletexer::Endpoints::Project.new(api_client)
end

#supplierObject



118
119
120
# File 'lib/tripletexer.rb', line 118

def supplier
  Tripletexer::Endpoints::Supplier.new(api_client)
end

#timesheetObject



122
123
124
# File 'lib/tripletexer.rb', line 122

def timesheet
  Tripletexer::Endpoints::Timesheet.new(api_client)
end

#tokenObject



126
127
128
# File 'lib/tripletexer.rb', line 126

def token
  Tripletexer::Endpoints::Token.new(api_client)
end