Class: ServiceNow::Result
- Inherits:
-
Object
- Object
- ServiceNow::Result
- Defined in:
- lib/servicenow/result.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(result) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(result) ⇒ Result
Returns a new instance of Result.
7 8 9 |
# File 'lib/servicenow/result.rb', line 7 def initialize(result) @raw = result end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/servicenow/result.rb', line 3 def raw @raw end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/servicenow/result.rb', line 11 def [](key) @raw[key.to_s] end |