class Veeqo::Response

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/veeqo/response.rb, line 7
def initialize(response)
  @response = response
end

Public Instance Methods

parse() click to toggle source
# File lib/veeqo/response.rb, line 11
def parse
  parse_response_content
end

Private Instance Methods

parse_response_content() click to toggle source
# File lib/veeqo/response.rb, line 17
def parse_response_content
  JSON.parse(response.body || "{}", object_class: ResponseObject)
end