Class: ServiceNow::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



7
8
9
# File 'lib/servicenow/response.rb', line 7

def initialize(response)
  @result = Result.new(response.body["result"])
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



3
4
5
# File 'lib/servicenow/response.rb', line 3

def result
  @result
end