Exception: Tweetwine::RequiredOptionError
- Defined in:
- lib/tweetwine/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(key, owner) ⇒ RequiredOptionError
constructor
A new instance of RequiredOptionError.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(key, owner) ⇒ RequiredOptionError
Returns a new instance of RequiredOptionError.
27 28 29 |
# File 'lib/tweetwine/exceptions.rb', line 27 def initialize(key, owner) @key, @owner = key, owner end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
25 26 27 |
# File 'lib/tweetwine/exceptions.rb', line 25 def key @key end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
25 26 27 |
# File 'lib/tweetwine/exceptions.rb', line 25 def owner @owner end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/tweetwine/exceptions.rb', line 31 def to_s "#{key} is required for #{owner}" end |