Class: Omdb::Api::Error
- Inherits:
-
Object
- Object
- Omdb::Api::Error
- Defined in:
- lib/omdb/api/error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(params) ⇒ Error
constructor
A new instance of Error.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/omdb/api/error.rb', line 6 def error @error end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/omdb/api/error.rb', line 6 def response @response end |