Class: Modulr::API::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/modulr/api/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (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