Class: Sendhub::Response
- Inherits:
-
Object
- Object
- Sendhub::Response
- Defined in:
- lib/sendhub/response.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Response
constructor
A new instance of Response.
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
#error ⇒ Object
Returns the value of attribute error.
3 4 5 |
# File 'lib/sendhub/response.rb', line 3 def error @error end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/sendhub/response.rb', line 3 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/sendhub/response.rb', line 3 def id @id end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/sendhub/response.rb', line 3 def status @status end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/sendhub/response.rb', line 3 def to @to end |