Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/blix/rest.rb

Overview

ensure that that times are sent in the correct json format

Instance Method Summary collapse

Instance Method Details

#as_json(*_a) ⇒ Object



159
160
161
# File 'lib/blix/rest.rb', line 159

def as_json(*_a)
  utc.iso8601
end

#to_json(*a) ⇒ Object



163
164
165
# File 'lib/blix/rest.rb', line 163

def to_json(*a)
  as_json.to_json(*a)
end