Class: Verokrypto::Event
- Inherits:
-
Object
- Object
- Verokrypto::Event
- Defined in:
- lib/verokrypto/event.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#fee ⇒ Object
Returns the value of attribute fee.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#original ⇒ Object
Returns the value of attribute original.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Event
constructor
A new instance of Event.
- #valid! ⇒ Object
Constructor Details
#initialize(source) ⇒ Event
Returns a new instance of Event.
8 9 10 |
# File 'lib/verokrypto/event.rb', line 8 def initialize(source) @source = source end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/verokrypto/event.rb', line 5 def date @date end |
#fee ⇒ Object
Returns the value of attribute fee.
5 6 7 |
# File 'lib/verokrypto/event.rb', line 5 def fee @fee end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
5 6 7 |
# File 'lib/verokrypto/event.rb', line 5 def kind @kind end |
#original ⇒ Object
Returns the value of attribute original.
6 7 8 |
# File 'lib/verokrypto/event.rb', line 6 def original @original end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/verokrypto/event.rb', line 5 def source @source end |
Instance Method Details
#valid! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/verokrypto/event.rb', line 12 def valid! return if @date && @fee pp self raise 'not valid' end |