class Urifetch::Response

Attributes

data[RW]
status[RW]
strategy_key[RW]

Public Class Methods

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

Public Instance Methods

to_h() click to toggle source
# File lib/urifetch/response.rb, line 13
def to_h
  @data
end
to_json() click to toggle source
# File lib/urifetch/response.rb, line 17
def to_json
  to_h.to_json
end