Module: Etheruby::ContractInstance
- Defined in:
- lib/etheruby/contract_instance.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/etheruby/contract_instance.rb', line 9 def self.included(base) base.include(Etheruby::ContractBase) end |
Instance Method Details
#initialize(address) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/etheruby/contract_instance.rb', line 13 def initialize(address) @address = at_address(address) @logger = ::Logger.new(STDOUT) @logger.level = if ENV.has_key? 'ETHERUBY_DEBUG' ::Logger::DEBUG else ::Logger::WARN end @logger.progname = "Etheruby Contract '#{self.class.name}'" end |