Exception: Trio::Blog::API::EmptyAttributeError
- Defined in:
- lib/trio/blog/api/error/empty_attribute_error.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
readonly
Returns the value of attribute attribute_name.
Instance Method Summary collapse
-
#initialize(attribute_name) ⇒ EmptyAttributeError
constructor
A new instance of EmptyAttributeError.
Constructor Details
#initialize(attribute_name) ⇒ EmptyAttributeError
Returns a new instance of EmptyAttributeError.
7 8 9 10 |
# File 'lib/trio/blog/api/error/empty_attribute_error.rb', line 7 def initialize(attribute_name) super("Empty attribute value for '#{attribute_name}'") @attribute_name = attribute_name end |
Instance Attribute Details
#attribute_name ⇒ Object (readonly)
Returns the value of attribute attribute_name.
5 6 7 |
# File 'lib/trio/blog/api/error/empty_attribute_error.rb', line 5 def attribute_name @attribute_name end |