Class: ServiceNow::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/servicenow/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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