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



138
139
140
# File 'lib/blix/rest.rb', line 138

def as_json(*_a)
  utc.iso8601
end

#to_json(*a) ⇒ Object



142
143
144
# File 'lib/blix/rest.rb', line 142

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