Class: ErroneousAPI::Client::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/erroneous-api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_response) ⇒ Response

Returns a new instance of Response.



26
27
28
29
30
# File 'lib/erroneous-api/client.rb', line 26

def initialize(json_response)
  @lines = json_response['lines']
  @summary = json_response['summary']
  @details = json_response['details']
end

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



25
26
27
# File 'lib/erroneous-api/client.rb', line 25

def details
  @details
end

#linesObject

Returns the value of attribute lines.



25
26
27
# File 'lib/erroneous-api/client.rb', line 25

def lines
  @lines
end

#summaryObject

Returns the value of attribute summary.



25
26
27
# File 'lib/erroneous-api/client.rb', line 25

def summary
  @summary
end