module Ryp
Constants
- VERSION
Public Class Methods
info(args, options = {})
click to toggle source
# File lib/ryp.rb, line 24 def self.info(args, options = {}) options = options.each_with_object({}) { |(k,v), h| h[k.to_sym] = v } content = Ryp::Content.discover(args, options) presenter = Ryp::Presenter.new(content.network) puts "[\"#{content.type}\"] on [\"#{content.network}\"]: #{content.value}" if options[:verbose] content.fetch_data! presenter.present(content) rescue Ryp::UnknownContentType => e puts "Unable to identify #{content.value} on the #{content.network} network" end
ticker_to_name(ticker)
click to toggle source
# File lib/ryp.rb, line 36 def self.ticker_to_name(ticker) { eth: 'Ethereum', btc: 'Bitcoin' }[ticker.to_s.downcase.to_sym] end