Class: CurrencyConversion::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/currency-conversion/resource.rb

Overview

Resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Currency::Conversion::Resource

Initialize a new resource

Parameters:

  • client (Currency::Conversion::Client)

    The Client instance



14
15
16
# File 'lib/currency-conversion/resource.rb', line 14

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientCurrency::Conversion::Client (readonly)

Returns Gets the Client instance.

Returns:

  • (Currency::Conversion::Client)

    Gets the Client instance



7
8
9
# File 'lib/currency-conversion/resource.rb', line 7

def client
  @client
end