class Ethon::Easy::Mirror
Constants
- INFORMATIONS_TO_LOG
- INFORMATIONS_TO_MIRROR
Attributes
Public Class Methods
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
Source
# File lib/ethon/easy/mirror.rb, line 21 def initialize(options = {}) @options = options end
Public Instance Methods
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