Class: Privy::Services::Earn
- Inherits:
-
Resources::Wallets::Earn
- Object
- Resources::Wallets::Earn
- Privy::Services::Earn
- Defined in:
- lib/privy/public_api/services/earn.rb,
lib/privy/public_api/services/earn/ethereum.rb,
lib/privy/public_api/services/earn/ethereum/incentive.rb
Defined Under Namespace
Classes: Ethereum
Instance Attribute Summary collapse
- #ethereum ⇒ Privy::Services::Earn::Ethereum readonly
-
#privy_client ⇒ Object
readonly
Returns the value of attribute privy_client.
Instance Method Summary collapse
-
#initialize(client:, privy_client:) ⇒ Earn
constructor
A new instance of Earn.
Constructor Details
#initialize(client:, privy_client:) ⇒ Earn
Returns a new instance of Earn.
11 12 13 14 15 |
# File 'lib/privy/public_api/services/earn.rb', line 11 def initialize(client:, privy_client:) super(client: client) @privy_client = privy_client @ethereum = Privy::Services::Earn::Ethereum.new(client: client, privy_client: privy_client) end |
Instance Attribute Details
#ethereum ⇒ Privy::Services::Earn::Ethereum (readonly)
9 10 11 |
# File 'lib/privy/public_api/services/earn.rb', line 9 def ethereum @ethereum end |
#privy_client ⇒ Object (readonly)
Returns the value of attribute privy_client.
6 7 8 |
# File 'lib/privy/public_api/services/earn.rb', line 6 def privy_client @privy_client end |