Exception: TimestampAPI::UnknownAssociation
- Inherits:
-
StandardError
- Object
- StandardError
- TimestampAPI::UnknownAssociation
- Defined in:
- lib/timestamp_api/errors.rb
Instance Attribute Summary collapse
-
#association_name ⇒ Object
readonly
Returns the value of attribute association_name.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, association_name) ⇒ UnknownAssociation
constructor
A new instance of UnknownAssociation.
- #message ⇒ Object
Constructor Details
#initialize(klass, association_name) ⇒ UnknownAssociation
Returns a new instance of UnknownAssociation.
62 63 64 65 |
# File 'lib/timestamp_api/errors.rb', line 62 def initialize(klass, association_name) @klass = klass @association_name = association_name end |
Instance Attribute Details
#association_name ⇒ Object (readonly)
Returns the value of attribute association_name.
60 61 62 |
# File 'lib/timestamp_api/errors.rb', line 60 def association_name @association_name end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
60 61 62 |
# File 'lib/timestamp_api/errors.rb', line 60 def klass @klass end |
Instance Method Details
#message ⇒ Object
67 68 69 |
# File 'lib/timestamp_api/errors.rb', line 67 def "Association `#{association_name}` could not be found on model `#{klass}`." end |