Class: Privy::Services::Earn

Inherits:
Resources::Wallets::Earn show all
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

Instance Method Summary collapse

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

#ethereumPrivy::Services::Earn::Ethereum (readonly)



9
10
11
# File 'lib/privy/public_api/services/earn.rb', line 9

def ethereum
  @ethereum
end

#privy_clientObject (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