Class: Peatio::Block
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#transactions ⇒ Object
readonly
Returns the value of attribute transactions.
Instance Method Summary collapse
-
#initialize(number, transactions) ⇒ Block
constructor
A new instance of Block.
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
#number ⇒ Object (readonly)
Returns the value of attribute number.
7 8 9 |
# File 'lib/peatio/block.rb', line 7 def number @number end |
#transactions ⇒ Object (readonly)
Returns the value of attribute transactions.
7 8 9 |
# File 'lib/peatio/block.rb', line 7 def transactions @transactions end |