Class: Interfax::Inbound

Inherits:
Base
  • Object
show all
Defined in:
lib/interfax/inbound.rb

Class Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

delete, get, post

Class Attribute Details

.allUsersObject

Returns the value of attribute allUsers.



4
5
6
# File 'lib/interfax/inbound.rb', line 4

def allUsers
  @allUsers
end

.lastIdObject

Returns the value of attribute lastId.



4
5
6
# File 'lib/interfax/inbound.rb', line 4

def lastId
  @lastId
end

.limitObject

Returns the value of attribute limit.



4
5
6
# File 'lib/interfax/inbound.rb', line 4

def limit
  @limit
end

.offsetObject

Returns the value of attribute offset.



4
5
6
# File 'lib/interfax/inbound.rb', line 4

def offset
  @offset
end

.unreadOnlyObject

Returns the value of attribute unreadOnly.



4
5
6
# File 'lib/interfax/inbound.rb', line 4

def unreadOnly
  @unreadOnly
end

Class Method Details

.index(unreadOnly = @unreadOnly, limit = @limit, lastId = @lastId, allUsers = @allUsers) ⇒ Object



12
13
14
# File 'lib/interfax/inbound.rb', line 12

def index unreadOnly = @unreadOnly, limit = @limit, lastId = @lastId, allUsers = @allUsers
  response = self.get Api::Inbound::Index, { :unreadOnly => unreadOnly, :limit => limit, :offset => offset, :allUsers => allUsers, :lastId => lastId }
end

.initializeObject



5
6
7
8
9
10
# File 'lib/interfax/inbound.rb', line 5

def initialize
  @unreadOnly = false
  @limit = 25
  @lastId = -1
  @allUsers = false
end