Class: Nem::Endpoint::Chain
- Inherits:
-
Base
- Object
- Base
- Nem::Endpoint::Chain
show all
- Defined in:
- lib/nem/endpoint/chain.rb
Instance Method Summary
collapse
Methods inherited from Base
#current_node, #initialize, #next_node!, #request, #request!
Instance Method Details
#height ⇒ Numeric
12
13
14
|
# File 'lib/nem/endpoint/chain.rb', line 12
def height
request!(:get, '/chain/height')[:height]
end
|
6
7
8
|
# File 'lib/nem/endpoint/chain.rb', line 6
def last_block
Nem::Model::Block.new_from_block request!(:get, '/chain/last-block')
end
|
#score ⇒ String
18
19
20
|
# File 'lib/nem/endpoint/chain.rb', line 18
def score
request!(:get, '/chain/score')[:score]
end
|