Class: TEALrb::LocalAccount
- Inherits:
-
Object
- Object
- TEALrb::LocalAccount
- Defined in:
- lib/tealrb/local.rb
Instance Method Summary collapse
- #[](_key) ⇒ Object
- #[]=(_key, _value) ⇒ Object
-
#initialize(contract) ⇒ LocalAccount
constructor
A new instance of LocalAccount.
Constructor Details
#initialize(contract) ⇒ LocalAccount
Returns a new instance of LocalAccount.
5 6 7 |
# File 'lib/tealrb/local.rb', line 5 def initialize(contract) @contract = contract end |
Instance Method Details
#[](_key) ⇒ Object
9 10 11 |
# File 'lib/tealrb/local.rb', line 9 def [](_key) @contract.app_local_get end |
#[]=(_key, _value) ⇒ Object
13 14 15 |
# File 'lib/tealrb/local.rb', line 13 def []=(_key, _value) @contract.app_local_put end |