Method: Influxdb::Api::Namespaces::Shards#create

Defined in:
lib/influxdb/api/namespaces/shards.rb

#create(attributes) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/influxdb/api/namespaces/shards.rb', line 7

def create(attributes)
  attributes['startTime'] = cast_datetime(attributes['startTime']) if attributes['startTime']
  attributes[:startTime] = cast_datetime(attributes[:startTime]) if attributes[:startTime]
  attributes['endTime'] = cast_datetime(attributes['endTime']) if attributes['endTime']
  attributes[:endTime] = cast_datetime(attributes[:endTime]) if attributes[:endTime]

  super(attributes)
end