struct CitiBike::Envelope(T)
- CitiBike::Envelope(T)
- Struct
- Value
- Object
Overview
Represents the wrapper object for all GBFS responses.
Defined in:
citibike/envelope.crConstructors
Instance Method Summary
- #data : T
- #data=(_data : T)
- #last_updated : Time
- #last_updated=(_last_updated : Time)
-
#stale?
Whether or not this object is stale, i.e.
- #to_json(json : JSON::Builder)
- #ttl : UInt32
- #ttl=(_ttl : UInt32)
Constructor Detail
Instance Method Detail
def stale?
#
Whether or not this object is stale, i.e. has existed for longer than
#last_updated
+ #ttl
seconds.