Class: Money::Common
- Inherits:
-
Object
- Object
- Money::Common
- Defined in:
- lib/money/resources/common.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Instance Method Summary collapse
-
#initialize(start:, service:) ⇒ Common
constructor
A new instance of Common.
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
#http ⇒ Object (readonly)
Returns the value of attribute http.
7 8 9 |
# File 'lib/money/resources/common.rb', line 7 def http @http end |