Class: Nis::Struct::BlockHeight

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/block_height.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#heightInteger

Returns the current value of height.

Returns:

  • (Integer)

    the current value of height



4
5
6
# File 'lib/nis/struct/block_height.rb', line 4

def height
  @height
end

Class Method Details

.build(attrs) ⇒ Object



8
9
10
# File 'lib/nis/struct/block_height.rb', line 8

def self.build(attrs)
  new(attrs)
end

Instance Method Details

#to_iInteger

Returns:

  • (Integer)


13
14
15
# File 'lib/nis/struct/block_height.rb', line 13

def to_i
  @height
end

#to_sString

Returns:

  • (String)


18
19
20
# File 'lib/nis/struct/block_height.rb', line 18

def to_s
  @height.to_s
end