Class: Modulr::API::Service
- Inherits:
-
Object
- Object
- Modulr::API::Service
- Defined in:
- lib/modulr/api/service.rb
Direct Known Subclasses
AccountsService, CustomersService, NotificationsService, PaymentsService, TransactionsService
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #format_datetime(datetime) ⇒ Object
-
#initialize(client) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(client) ⇒ Service
Returns a new instance of Service.
8 9 10 |
# File 'lib/modulr/api/service.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/modulr/api/service.rb', line 6 def client @client end |
Instance Method Details
#format_datetime(datetime) ⇒ Object
12 13 14 |
# File 'lib/modulr/api/service.rb', line 12 def format_datetime(datetime) datetime.strftime("%Y-%m-%dT%H:%M:%S%z") end |