Class: ContextIO::Lite
- Inherits:
-
Object
- Object
- ContextIO::Lite
- Includes:
- ContextIO
- Defined in:
- lib/contextio/lite.rb,
lib/contextio/lite/api.rb,
lib/contextio/lite/user.rb,
lib/contextio/lite/folder.rb,
lib/contextio/lite/message.rb,
lib/contextio/lite/webhook.rb,
lib/contextio/lite/url_builder.rb,
lib/contextio/lite/email_account.rb,
lib/contextio/lite/user_collection.rb,
lib/contextio/lite/folder_collection.rb,
lib/contextio/lite/message_collection.rb,
lib/contextio/lite/webhook_collection.rb,
lib/contextio/lite/email_account_collection.rb
Defined Under Namespace
Classes: API, EmailAccount, EmailAccountCollection, Folder, FolderCollection, Message, MessageCollection, URLBuilder, User, UserCollection, Webhook, WebhookCollection
Constant Summary
Constants included from ContextIO
Instance Attribute Summary
Attributes included from ContextIO
Instance Method Summary collapse
-
#initialize(key, secret, opts = {}) ⇒ Lite
constructor
Creates a new ‘ContextIO` instance and makes a new handle for the API.
-
#users ⇒ Users
Your entry point for dealing with users.
Methods included from ContextIO
Constructor Details
#initialize(key, secret, opts = {}) ⇒ Lite
Creates a new ‘ContextIO` instance and makes a new handle for the API. This is your entry point to your Context.IO account. For a web app, you probably want to instantiate this in some kind of initializer and keep it around for the life of the process.
14 15 16 |
# File 'lib/contextio/lite.rb', line 14 def initialize(key, secret, opts={}) @api = API.new(key, secret, opts) end |
Instance Method Details
#users ⇒ Users
Your entry point for dealing with users.
22 23 24 |
# File 'lib/contextio/lite.rb', line 22 def users UserCollection.new(api) end |