Class: Money::Common

Inherits:
Object
  • Object
show all
Defined in:
lib/money/resources/common.rb

Direct Known Subclasses

Arbitrage, New, Top

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start:, service:) ⇒ Common

Returns a new instance of Common.



7
8
9
10
11
12
13
# File 'lib/money/resources/common.rb', line 7

def initialize(start:, service:)
  @start = start || 1
  @service = service.to_s

  @http = Money::Helpers::HttpRequest.new(service: @service)
  @form = Money::Helpers::Format.new
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



5
6
7
# File 'lib/money/resources/common.rb', line 5

def http
  @http
end