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



171
172
173
# File 'lib/blix/rest.rb', line 171

def as_json(*_a)
  utc.iso8601
end

#to_json(*a) ⇒ Object



175
176
177
# File 'lib/blix/rest.rb', line 175

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