Class: Desk::Client
- Inherits:
-
Object
- Object
- Desk::Client
- Defined in:
- lib/desk/client.rb
Instance Method Summary collapse
- #articles ⇒ Object
- #brands ⇒ Object
- #cases ⇒ Object
- #companies ⇒ Object
- #custom_fields ⇒ Object
- #customers ⇒ Object
- #facebook_users ⇒ Object
- #filters ⇒ Object
- #groups ⇒ Object
- #inbound_mailboxes ⇒ Object
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
- #topics ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
18 19 20 |
# File 'lib/desk/client.rb', line 18 def initialize(opts={}) @opts = opts end |
Instance Method Details
#articles ⇒ Object
22 23 24 |
# File 'lib/desk/client.rb', line 22 def articles Desk::Api::Articles.new(connection) end |
#brands ⇒ Object
38 39 40 |
# File 'lib/desk/client.rb', line 38 def brands Desk::Api::Brands.new(connection) end |
#cases ⇒ Object
26 27 28 |
# File 'lib/desk/client.rb', line 26 def cases Desk::Api::Cases.new(connection) end |
#companies ⇒ Object
42 43 44 |
# File 'lib/desk/client.rb', line 42 def companies Desk::Api::Brands.new(connection) end |
#custom_fields ⇒ Object
46 47 48 |
# File 'lib/desk/client.rb', line 46 def custom_fields Desk::Api::CustomFields.new(connection) end |
#customers ⇒ Object
30 31 32 |
# File 'lib/desk/client.rb', line 30 def customers Desk::Api::Customers.new(connection) end |
#facebook_users ⇒ Object
50 51 52 |
# File 'lib/desk/client.rb', line 50 def facebook_users Desk::Api::FacebookUsers.new(connection) end |
#filters ⇒ Object
54 55 56 |
# File 'lib/desk/client.rb', line 54 def filters Desk::Api::Filters.new(connection) end |
#groups ⇒ Object
58 59 60 |
# File 'lib/desk/client.rb', line 58 def groups Desk::Api::Groups.new(connection) end |
#inbound_mailboxes ⇒ Object
62 63 64 |
# File 'lib/desk/client.rb', line 62 def inbound_mailboxes Desk::Api::InboundMailboxes.new(connection) end |