Class: Ohby::Code

Inherits:
Object
  • Object
show all
Defined in:
lib/ohby/code.rb

Overview

Object representation of an 0x-code.

Author:

Since:

  • 0.1.0

Version:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

The code itself

Since:

  • 0.1.0



9
10
11
# File 'lib/ohby/code.rb', line 9

def code
  @code
end

#dateObject

The date this 0x-code was created

Since:

  • 0.1.0



13
14
15
# File 'lib/ohby/code.rb', line 13

def date
  @date
end

#expiresObject

The expiry of this code

Since:

  • 0.1.0



15
16
17
# File 'lib/ohby/code.rb', line 15

def expires
  @expires
end

#hashObject

The Sha256 hash of this code

Since:

  • 0.1.0



19
20
21
# File 'lib/ohby/code.rb', line 19

def hash
  @hash
end

#messageObject

The message, or contents, this code represents

Since:

  • 0.1.0



11
12
13
# File 'lib/ohby/code.rb', line 11

def message
  @message
end

#redirectObject

Redirect flag on this code

Since:

  • 0.1.0



21
22
23
# File 'lib/ohby/code.rb', line 21

def redirect
  @redirect
end

#visibilityObject

The visibility of this code

Since:

  • 0.1.0



17
18
19
# File 'lib/ohby/code.rb', line 17

def visibility
  @visibility
end