Class: Omdb::Api::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/omdb/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Error

Returns a new instance of Error.



9
10
11
12
13
# File 'lib/omdb/api/error.rb', line 9

def initialize(params)
  params.each_pair do |k, v|
    instance_variable_set("@#{k}", v)
  end
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



6
7
8
# File 'lib/omdb/api/error.rb', line 6

def error
  @error
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/omdb/api/error.rb', line 6

def response
  @response
end