class Block
Attributes
number[R]
timestamp[R]
Public Class Methods
new( timestamp: Timestamp.now, number: 0 )
click to toggle source
# File lib/universum/universum.rb, line 20 def initialize( timestamp: Timestamp.now, number: 0 ) @timestamp = timestamp # unix epoch time (in seconds since 1970) @number = number # block height (start with 0 - genesis block) end