Class: Desk::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/desk/client.rb

Instance Method Summary collapse

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

#articlesObject



22
23
24
# File 'lib/desk/client.rb', line 22

def articles
  Desk::Api::Articles.new(connection)
end

#brandsObject



38
39
40
# File 'lib/desk/client.rb', line 38

def brands
  Desk::Api::Brands.new(connection)
end

#casesObject



26
27
28
# File 'lib/desk/client.rb', line 26

def cases
  Desk::Api::Cases.new(connection)
end

#companiesObject



42
43
44
# File 'lib/desk/client.rb', line 42

def companies
  Desk::Api::Brands.new(connection)
end

#custom_fieldsObject



46
47
48
# File 'lib/desk/client.rb', line 46

def custom_fields
  Desk::Api::CustomFields.new(connection)
end

#customersObject



30
31
32
# File 'lib/desk/client.rb', line 30

def customers
  Desk::Api::Customers.new(connection)
end

#facebook_usersObject



50
51
52
# File 'lib/desk/client.rb', line 50

def facebook_users
  Desk::Api::FacebookUsers.new(connection)
end

#filtersObject



54
55
56
# File 'lib/desk/client.rb', line 54

def filters
  Desk::Api::Filters.new(connection)
end

#groupsObject



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

def groups
  Desk::Api::Groups.new(connection)
end

#inbound_mailboxesObject



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

def inbound_mailboxes
  Desk::Api::InboundMailboxes.new(connection)
end

#topicsObject



34
35
36
# File 'lib/desk/client.rb', line 34

def topics
  Desk::Api::Topics.new(connection)
end