class Toshi::Block
Public Class Methods
all()
click to toggle source
# File lib/toshi/block.rb, line 4 def all response = client.get '/blocks' create_many(response) end
find(identifier)
click to toggle source
# File lib/toshi/block.rb, line 9 def find(identifier) response = client.get '/blocks/'+identifier.to_s create_one(response) end
latest()
click to toggle source
# File lib/toshi/block.rb, line 14 def latest response = client.get '/blocks/latest' create_one(response) end
Public Instance Methods
transactions()
click to toggle source
# File lib/toshi/block.rb, line 20 def transactions response = client.get '/blocks/'+hash+'/transactions' self.class.create_one(response) end