Class: Apiphobic::Errors::InvalidAttribute
- Inherits:
-
Erratum::Errors::InvalidToken
- Object
- Erratum::Errors::InvalidToken
- Apiphobic::Errors::InvalidAttribute
- Defined in:
- lib/apiphobic/errors/invalid_attribute.rb
Instance Attribute Summary collapse
-
#additional_message ⇒ Object
Returns the value of attribute additional_message.
-
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
-
#attribute_value ⇒ Object
Returns the value of attribute attribute_value.
Instance Method Summary collapse
Instance Attribute Details
#additional_message ⇒ Object
Returns the value of attribute additional_message.
8 9 10 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 8 def @additional_message end |
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
8 9 10 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 8 def attribute_name @attribute_name end |
#attribute_value ⇒ Object
Returns the value of attribute attribute_value.
8 9 10 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 8 def attribute_value @attribute_value end |
Instance Method Details
#detail ⇒ Object
16 17 18 19 20 21 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 16 def detail <<~HEREDOC.chomp.tr("\n", ' ') The #{attribute_name} listed in your token (#{attribute_value}) is not valid for this application. #{} HEREDOC end |
#source ⇒ Object
23 24 25 26 27 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 23 def source { attribute_name => attribute_value, } end |
#title ⇒ Object
12 13 14 |
# File 'lib/apiphobic/errors/invalid_attribute.rb', line 12 def title 'Invalid Issuance' end |