Class: Pabx::Response
- Inherits:
-
Object
- Object
- Pabx::Response
- Defined in:
- lib/pabx/response.rb
Instance Attribute Summary collapse
-
#action_id ⇒ Object
Returns the value of attribute action_id.
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
-
#success ⇒ Object
Returns the value of attribute success.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(type, response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 10 11 |
# File 'lib/pabx/response.rb', line 5 def initialize(type,response) self.type = type self.success = self._parse_successfull(response) self.action_id = self._parse_action_id(response) self. = self.(response) self.data = self._parse_data(response) end |
Instance Attribute Details
#action_id ⇒ Object
Returns the value of attribute action_id.
3 4 5 |
# File 'lib/pabx/response.rb', line 3 def action_id @action_id end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/pabx/response.rb', line 3 def data @data end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/pabx/response.rb', line 3 def @message end |
#success ⇒ Object
Returns the value of attribute success.
3 4 5 |
# File 'lib/pabx/response.rb', line 3 def success @success end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/pabx/response.rb', line 3 def type @type end |