Class: Tripletexer
- Inherits:
-
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
#activity ⇒ Object
58
59
60
|
# File 'lib/tripletexer.rb', line 58
def activity
Tripletexer::Endpoints::Activity.new(api_client)
end
|
#address ⇒ Object
62
63
64
|
# File 'lib/tripletexer.rb', line 62
def address
Tripletexer::Endpoints::Address.new(api_client)
end
|
#company ⇒ Object
66
67
68
|
# File 'lib/tripletexer.rb', line 66
def company
Tripletexer::Endpoints::Company.new(api_client)
end
|
70
71
72
|
# File 'lib/tripletexer.rb', line 70
def contact
Tripletexer::Endpoints::Contact.new(api_client)
end
|
#country ⇒ Object
74
75
76
|
# File 'lib/tripletexer.rb', line 74
def country
Tripletexer::Endpoints::Country.new(api_client)
end
|
#crm ⇒ Object
130
131
132
|
# File 'lib/tripletexer.rb', line 130
def crm
Tripletexer::Endpoints::Crm.new(api_client)
end
|
#currency ⇒ Object
78
79
80
|
# File 'lib/tripletexer.rb', line 78
def currency
Tripletexer::Endpoints::Currency.new(api_client)
end
|
#customer ⇒ Object
82
83
84
|
# File 'lib/tripletexer.rb', line 82
def customer
Tripletexer::Endpoints::Customer.new(api_client)
end
|
#department ⇒ Object
86
87
88
|
# File 'lib/tripletexer.rb', line 86
def department
Tripletexer::Endpoints::Department.new(api_client)
end
|
#employee ⇒ Object
90
91
92
|
# File 'lib/tripletexer.rb', line 90
def employee
Tripletexer::Endpoints::Employee.new(api_client)
end
|
#inventory ⇒ Object
94
95
96
|
# File 'lib/tripletexer.rb', line 94
def inventory
Tripletexer::Endpoints::Inventory.new(api_client)
end
|
#invoice ⇒ Object
98
99
100
|
# File 'lib/tripletexer.rb', line 98
def invoice
Tripletexer::Endpoints::Invoice.new(api_client)
end
|
#ledger ⇒ Object
102
103
104
|
# File 'lib/tripletexer.rb', line 102
def ledger
Tripletexer::Endpoints::Ledger.new(api_client)
end
|
#order ⇒ Object
106
107
108
|
# File 'lib/tripletexer.rb', line 106
def order
Tripletexer::Endpoints::Order.new(api_client)
end
|
#product ⇒ Object
110
111
112
|
# File 'lib/tripletexer.rb', line 110
def product
Tripletexer::Endpoints::Product.new(api_client)
end
|
#project ⇒ Object
114
115
116
|
# File 'lib/tripletexer.rb', line 114
def project
Tripletexer::Endpoints::Project.new(api_client)
end
|
#supplier ⇒ Object
118
119
120
|
# File 'lib/tripletexer.rb', line 118
def supplier
Tripletexer::Endpoints::Supplier.new(api_client)
end
|
#timesheet ⇒ Object
122
123
124
|
# File 'lib/tripletexer.rb', line 122
def timesheet
Tripletexer::Endpoints::Timesheet.new(api_client)
end
|
#token ⇒ Object
126
127
128
|
# File 'lib/tripletexer.rb', line 126
def token
Tripletexer::Endpoints::Token.new(api_client)
end
|