Class: Inbox::Namespace

Inherits:
RestfulModel show all
Defined in:
lib/namespace.rb

Instance Attribute Summary collapse

Attributes inherited from RestfulModel

#created_at, #id, #namespace

Class Method Summary collapse

Instance Method Summary collapse

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

#accountObject

Returns the value of attribute account.



20
21
22
# File 'lib/namespace.rb', line 20

def 
  @account
end

#email_addressObject

Returns the value of attribute email_address.



18
19
20
# File 'lib/namespace.rb', line 18

def email_address
  @email_address
end

#providerObject

Returns the value of attribute provider.



19
20
21
# File 'lib/namespace.rb', line 19

def provider
  @provider
end

Class Method Details

.collection_nameObject



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

def self.collection_name
  "n"
end

Instance Method Details

#contactsObject



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

def contacts
  @contacts ||= RestfulModelCollection.new(Contact, @_api, @id)
end

#draftsObject



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

def drafts
  @drafts ||= RestfulModelCollection.new(Draft, @_api, @id)
end

#filesObject



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

def files
  @files ||= RestfulModelCollection.new(File, @_api, @id)
end

#messagesObject



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

def messages
  @messages ||= RestfulModelCollection.new(Message, @_api, @id)
end

#tagsObject



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

def tags
  @tags ||= RestfulModelCollection.new(Tag, @_api, @id)
end

#threadsObject



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

def threads
  @threads ||= RestfulModelCollection.new(Thread, @_api, @id)
end