Class: Inbox::Namespace
- Inherits:
-
RestfulModel
- Object
- RestfulModel
- Inbox::Namespace
- Defined in:
- lib/namespace.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#provider ⇒ Object
Returns the value of attribute provider.
Attributes inherited from RestfulModel
Class Method Summary collapse
Instance Method Summary collapse
- #contacts ⇒ Object
- #drafts ⇒ Object
- #files ⇒ Object
- #messages ⇒ Object
- #tags ⇒ Object
- #threads ⇒ Object
Methods inherited from RestfulModel
#==, #as_json, #destroy, #inflate, #initialize, #save!, #update, #url
Constructor Details
This class inherits a constructor from Inbox::RestfulModel
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
20 21 22 |
# File 'lib/namespace.rb', line 20 def account @account end |
#email_address ⇒ Object
Returns the value of attribute email_address.
18 19 20 |
# File 'lib/namespace.rb', line 18 def email_address @email_address end |
#provider ⇒ Object
Returns the value of attribute provider.
19 20 21 |
# File 'lib/namespace.rb', line 19 def provider @provider end |
Class Method Details
.collection_name ⇒ Object
22 23 24 |
# File 'lib/namespace.rb', line 22 def self.collection_name "n" end |
Instance Method Details
#contacts ⇒ Object
46 47 48 |
# File 'lib/namespace.rb', line 46 def contacts @contacts ||= RestfulModelCollection.new(Contact, @_api, @id) end |
#drafts ⇒ Object
42 43 44 |
# File 'lib/namespace.rb', line 42 def drafts @drafts ||= RestfulModelCollection.new(Draft, @_api, @id) end |
#files ⇒ Object
38 39 40 |
# File 'lib/namespace.rb', line 38 def files @files ||= RestfulModelCollection.new(File, @_api, @id) end |
#messages ⇒ Object
34 35 36 |
# File 'lib/namespace.rb', line 34 def @messages ||= RestfulModelCollection.new(Message, @_api, @id) end |
#tags ⇒ Object
30 31 32 |
# File 'lib/namespace.rb', line 30 def @tags ||= RestfulModelCollection.new(Tag, @_api, @id) end |
#threads ⇒ Object
26 27 28 |
# File 'lib/namespace.rb', line 26 def threads @threads ||= RestfulModelCollection.new(Thread, @_api, @id) end |