class Mercadopago::Response
Attributes
content[R]
response[R]
status[R]
Public Class Methods
new(status, response)
click to toggle source
# File lib/mercadopago/response.rb, line 5 def initialize(status, response) @status = status @response = response end
Public Instance Methods
[](attr)
click to toggle source
# File lib/mercadopago/response.rb, line 10 def [](attr) content[attr] end
method_missing(name, *args, &block)
click to toggle source
Calls superclass method
# File lib/mercadopago/response.rb, line 18 def method_missing(name, *args, &block) if response.has_key?(name) || response.has_key?(name.to_s) response[name] || response[name.to_s] else super end end
respond_to?(name, include_private = false)
click to toggle source
Calls superclass method
# File lib/mercadopago/response.rb, line 26 def respond_to?(name, include_private = false) response.has_key?(name.to_sym) || response.has_key?(name.to_s) || super end
to_h()
click to toggle source
# File lib/mercadopago/response.rb, line 14 def to_h content end