Class: Songdrop::Errors

Inherits:
Base
  • Object
show all
Defined in:
lib/songdrop/objects/error.rb

Instance Attribute Summary

Attributes inherited from Base

#_properties

Instance Method Summary collapse

Methods inherited from Base

#errors?, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Songdrop::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Songdrop::Base

Instance Method Details

#on(attribute) ⇒ Object



10
11
12
# File 'lib/songdrop/objects/error.rb', line 10

def on(attribute)
  self.attributes[attribute.to_s]
end