Exception: Trio::Blog::API::EmptyAttributeError

Inherits:
Error
  • Object
show all
Defined in:
lib/trio/blog/api/error/empty_attribute_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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