Class: GoogleTranslateScraper::Models::Error
- Inherits:
-
Object
- Object
- GoogleTranslateScraper::Models::Error
- Defined in:
- lib/google_translate_scraper/models/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(arguments = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(arguments = {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/google_translate_scraper/models/error.rb', line 8 def initialize(arguments = {}) arguments.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/google_translate_scraper/models/error.rb', line 6 def @message end |