Class: Nis::Struct::BlockHeight
- Inherits:
-
Object
- Object
- Nis::Struct::BlockHeight
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
#[], #initialize, #to_hash, #to_json
Instance Attribute Details
#height ⇒ Integer
Returns 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_i ⇒ Integer
13
14
15
|
# File 'lib/nis/struct/block_height.rb', line 13
def to_i
@height
end
|
#to_s ⇒ String
18
19
20
|
# File 'lib/nis/struct/block_height.rb', line 18
def to_s
@height.to_s
end
|