Class: Ohby::Code
- Inherits:
-
Object
- Object
- Ohby::Code
- Defined in:
- lib/ohby/code.rb
Overview
Object representation of an 0x-code.
Instance Attribute Summary collapse
-
#code ⇒ Object
The code itself.
-
#date ⇒ Object
The date this 0x-code was created.
-
#expires ⇒ Object
The expiry of this code.
-
#hash ⇒ Object
The Sha256 hash of this code.
-
#message ⇒ Object
The message, or contents, this code represents.
-
#redirect ⇒ Object
Redirect flag on this code.
-
#visibility ⇒ Object
The visibility of this code.
Instance Attribute Details
#code ⇒ Object
The code itself
9 10 11 |
# File 'lib/ohby/code.rb', line 9 def code @code end |
#date ⇒ Object
The date this 0x-code was created
13 14 15 |
# File 'lib/ohby/code.rb', line 13 def date @date end |
#expires ⇒ Object
The expiry of this code
15 16 17 |
# File 'lib/ohby/code.rb', line 15 def expires @expires end |
#hash ⇒ Object
The Sha256 hash of this code
19 20 21 |
# File 'lib/ohby/code.rb', line 19 def hash @hash end |
#message ⇒ Object
The message, or contents, this code represents
11 12 13 |
# File 'lib/ohby/code.rb', line 11 def @message end |
#redirect ⇒ Object
Redirect flag on this code
21 22 23 |
# File 'lib/ohby/code.rb', line 21 def redirect @redirect end |
#visibility ⇒ Object
The visibility of this code
17 18 19 |
# File 'lib/ohby/code.rb', line 17 def visibility @visibility end |