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.



9
10
11
12
13
14
15
16
# File 'lib/money/resources/common.rb', line 9

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

  @http = Money::Helpers::HttpRequest.new(service: @service)
  @form = Money::Helpers::Format.new
  @log = Beacon::Service.instance
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



7
8
9
# File 'lib/money/resources/common.rb', line 7

def http
  @http
end