Module: HelpScout
- Defined in:
- lib/help_scout-sdk.rb,
lib/help_scout/api.rb,
lib/help_scout/base.rb,
lib/help_scout/user.rb,
lib/help_scout/util.rb,
lib/help_scout/folder.rb,
lib/help_scout/thread.rb,
lib/help_scout/mailbox.rb,
lib/help_scout/version.rb,
lib/help_scout/customer.rb,
lib/help_scout/response.rb,
lib/help_scout/api/client.rb,
lib/help_scout/attachment.rb,
lib/help_scout/conversation.rb,
lib/help_scout/configuration.rb,
lib/help_scout/modules/getable.rb,
lib/help_scout/api/access_token.rb,
lib/help_scout/modules/listable.rb,
lib/help_scout/api/access_token/cache.rb,
lib/help_scout/api/access_token/request.rb
Defined Under Namespace
Modules: Getable, Listable, Util
Classes: API, Attachment, Base, Configuration, Conversation, Customer, Folder, Mailbox, Response, Thread, User
Constant Summary
collapse
- VERSION =
'3.0.3'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
48
49
50
|
# File 'lib/help_scout-sdk.rb', line 48
def configuration
@_configuration ||= Configuration.new
end
|
Class Method Details
.access_token ⇒ Object
32
33
34
|
# File 'lib/help_scout-sdk.rb', line 32
def access_token
api.access_token
end
|
.api ⇒ Object
36
37
38
|
# File 'lib/help_scout-sdk.rb', line 36
def api
@_api ||= HelpScout::API.new
end
|
.app_id ⇒ Object
40
41
42
|
# File 'lib/help_scout-sdk.rb', line 40
def app_id
configuration.app_id
end
|
.app_secret ⇒ Object
44
45
46
|
# File 'lib/help_scout-sdk.rb', line 44
def app_secret
configuration.app_secret
end
|
52
53
54
|
# File 'lib/help_scout-sdk.rb', line 52
def configure
yield(configuration)
end
|
.default_mailbox ⇒ Object
56
57
58
|
# File 'lib/help_scout-sdk.rb', line 56
def default_mailbox
configuration.default_mailbox
end
|
.reset! ⇒ Object
60
61
62
|
# File 'lib/help_scout-sdk.rb', line 60
def reset!
@_api = HelpScout::API.new
end
|