class Ryp::DataSource::BlockCypher

Attributes

network[R]

Public Class Methods

new(network) click to toggle source
# File lib/ryp/data_source/block_cypher.rb, line 8
def initialize(network)
  @network = network
end

Public Instance Methods

address(content) click to toggle source
# File lib/ryp/data_source/block_cypher.rb, line 12
def address(content)
  get("v1/#{network}/main/addrs/#{content.value}")
end
data_host() click to toggle source
# File lib/ryp/data_source/block_cypher.rb, line 20
def data_host
  'https://api.blockcypher.com'
end
transaction(content) click to toggle source
# File lib/ryp/data_source/block_cypher.rb, line 16
def transaction(content)
  get("v1/#{network}/main/txs/#{content.value}")
end