Class: Peatio::Block

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/peatio/block.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number, transactions) ⇒ Block

Returns a new instance of Block.



9
10
11
12
# File 'lib/peatio/block.rb', line 9

def initialize(number, transactions)
  @number = number
  @transactions = transactions
end

Instance Attribute Details

#numberObject (readonly)

Returns the value of attribute number.



7
8
9
# File 'lib/peatio/block.rb', line 7

def number
  @number
end

#transactionsObject (readonly)

Returns the value of attribute transactions.



7
8
9
# File 'lib/peatio/block.rb', line 7

def transactions
  @transactions
end