lib/chairnerd/response/event_response.rb in chairnerd-0.0.5 vs lib/chairnerd/response/event_response.rb in chairnerd-0.0.6
- old
+ new
@@ -1,18 +1,16 @@
module Chairnerd
module Response
class EventResponse < Base
+ simple_parse :id, :url, :title
+
def datetime_local
- DateTime.parse(@response['datetime_local'])
+ Time.parse(@response['datetime_local'])
end
- def url
- @response['url']
- end
-
- def title
- @response['title']
+ def datetime_utc
+ Time.parse(@response['datetime_utc'])
end
end
end
end
\ No newline at end of file