Class: Sendhub::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/sendhub/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Response

Returns a new instance of Response.



4
5
6
7
8
9
10
# File 'lib/sendhub/response.rb', line 4

def initialize(params={})
  @id = params['id']
  @status = params['status']
  @from = params['from']
  @to = params['to']
  @error = params['error']
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



3
4
5
# File 'lib/sendhub/response.rb', line 3

def error
  @error
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/sendhub/response.rb', line 3

def from
  @from
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/sendhub/response.rb', line 3

def id
  @id
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/sendhub/response.rb', line 3

def status
  @status
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/sendhub/response.rb', line 3

def to
  @to
end