class Ethon::Easy::Mirror

Constants

INFORMATIONS_TO_LOG
INFORMATIONS_TO_MIRROR

Attributes

options[R]
to_hash[R]

Public Class Methods

from_easy(easy) click to toggle source
# File lib/ethon/easy/mirror.rb, line 13
def self.from_easy(easy)
  options = {}
  INFORMATIONS_TO_MIRROR.each do |info|
    options[info] = easy.send(info)
  end
  new(options)
end
new(options = {}) click to toggle source
# File lib/ethon/easy/mirror.rb, line 21
def initialize(options = {})
  @options = options
end

Public Instance Methods

log_informations() click to toggle source
# File lib/ethon/easy/mirror.rb, line 25
def log_informations
  Hash[*INFORMATIONS_TO_LOG.map do |info|
    [info, options[info]]
  end.flatten]
end