Class: Keratin::ServiceResult
- Inherits:
-
Object
- Object
- Keratin::ServiceResult
- Defined in:
- lib/keratin/client.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(data) ⇒ ServiceResult
constructor
A new instance of ServiceResult.
Constructor Details
#initialize(data) ⇒ ServiceResult
Returns a new instance of ServiceResult.
8 9 10 11 |
# File 'lib/keratin/client.rb', line 8 def initialize(data) @data = data @result = data['result'] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/keratin/client.rb', line 5 def data @data end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/keratin/client.rb', line 6 def result @result end |