Class: Solace::Programs::Base
- Inherits:
-
Object
- Object
- Solace::Programs::Base
- Defined in:
- lib/solace/programs/base.rb
Overview
Base class for program-specific clients. Provides a consistent interface for interacting with on-chain programs.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#program_id ⇒ Object
readonly
Returns the value of attribute program_id.
Instance Method Summary collapse
-
#initialize(connection:, program_id:) ⇒ Base
constructor
Initializes a new program client.
Constructor Details
#initialize(connection:, program_id:) ⇒ Base
Initializes a new program client.
16 17 18 19 |
# File 'lib/solace/programs/base.rb', line 16 def initialize(connection:, program_id:) @connection = connection @program_id = program_id end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
10 11 12 |
# File 'lib/solace/programs/base.rb', line 10 def connection @connection end |
#program_id ⇒ Object (readonly)
Returns the value of attribute program_id.
10 11 12 |
# File 'lib/solace/programs/base.rb', line 10 def program_id @program_id end |