class WCC::Data::Response
Attributes
raw[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/wcc/data/response.rb, line 7 def initialize(raw) @raw = raw end
Public Instance Methods
json()
click to toggle source
# File lib/wcc/data/response.rb, line 11 def json JSON.parse(body) rescue JSON::ParserError end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/wcc/data/response.rb, line 16 def method_missing(method, *args, &block) if raw.respond_to?(method) raw.public_send(method, *args, &block) else super end end
respond_to?(method)
click to toggle source
Calls superclass method
# File lib/wcc/data/response.rb, line 24 def respond_to?(method) super || raw.respond_to?(method) end