class Rovi::Response

Public Class Methods

new(data = {}) click to toggle source
# File lib/rovi/response.rb, line 4
def initialize(data = {})
  @data = data
end

Public Instance Methods

method_missing(m) click to toggle source
Calls superclass method
# File lib/rovi/response.rb, line 12
def method_missing(m)
  key = m.to_s
  if @hash != nil and @hash.has_key?(key)
    v = @hash[key]
    v = JsonResponse.new(v) if v.is_a?(Hash)
    return v
  else
    super
  end
end
success?() click to toggle source
# File lib/rovi/response.rb, line 8
def success?
  @data['status']
end