Class: Ethereum::VM::Message
Instance Attribute Summary collapse
-
#code_address ⇒ Object
Returns the value of attribute code_address.
-
#data ⇒ Object
Returns the value of attribute data.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#gas ⇒ Object
Returns the value of attribute gas.
-
#is_create ⇒ Object
Returns the value of attribute is_create.
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#to ⇒ Object
Returns the value of attribute to.
-
#transfers_value ⇒ Object
Returns the value of attribute transfers_value.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(sender, to, value, gas, data, depth: 0, code_address: nil, is_create: false, transfers_value: true) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(sender, to, value, gas, data, depth: 0, code_address: nil, is_create: false, transfers_value: true) ⇒ Message
Returns a new instance of Message.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ethereum/vm/message.rb', line 10 def initialize(sender, to, value, gas, data, depth:0, code_address:nil, is_create:false, transfers_value: true) @sender = sender @to = to @value = value @gas = gas @data = data @depth = depth @logs = [] @code_address = code_address @is_create = is_create @transfers_value = transfers_value end |
Instance Attribute Details
#code_address ⇒ Object
Returns the value of attribute code_address.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def code_address @code_address end |
#data ⇒ Object
Returns the value of attribute data.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def data @data end |
#depth ⇒ Object
Returns the value of attribute depth.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def depth @depth end |
#gas ⇒ Object
Returns the value of attribute gas.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def gas @gas end |
#is_create ⇒ Object
Returns the value of attribute is_create.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def is_create @is_create end |
#logs ⇒ Object
Returns the value of attribute logs.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def logs @logs end |
#sender ⇒ Object
Returns the value of attribute sender.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def sender @sender end |
#to ⇒ Object
Returns the value of attribute to.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def to @to end |
#transfers_value ⇒ Object
Returns the value of attribute transfers_value.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def transfers_value @transfers_value end |
#value ⇒ Object
Returns the value of attribute value.
8 9 10 |
# File 'lib/ethereum/vm/message.rb', line 8 def value @value end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
23 24 25 |
# File 'lib/ethereum/vm/message.rb', line 23 def to_s "#<#{self.class.name}:#{object_id} to=#{@to[0,8]}>" end |