Exception: ActionTimer::InvalidType
- Inherits:
-
Exception
- Object
- Exception
- ActionTimer::InvalidType
- Defined in:
- lib/actiontimer/Exceptions.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#given ⇒ Object
readonly
Returns the value of attribute given.
Instance Method Summary collapse
-
#initialize(g, e) ⇒ InvalidType
constructor
A new instance of InvalidType.
- #to_s ⇒ Object
Constructor Details
#initialize(g, e) ⇒ InvalidType
Returns a new instance of InvalidType.
12 13 14 15 |
# File 'lib/actiontimer/Exceptions.rb', line 12 def initialize(g,e) @given = given @expected = e end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
11 12 13 |
# File 'lib/actiontimer/Exceptions.rb', line 11 def expected @expected end |
#given ⇒ Object (readonly)
Returns the value of attribute given.
10 11 12 |
# File 'lib/actiontimer/Exceptions.rb', line 10 def given @given end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/actiontimer/Exceptions.rb', line 17 def to_s "Given type: #{g} Expected type: #{e}" end |