struct CitiBike::Envelope(T)

Overview

Represents the wrapper object for all GBFS responses.

Defined in:

citibike/envelope.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(__temp_52 : JSON::PullParser) #

Instance Method Detail

def data : T #

def data=(_data : T) #

def last_updated : Time #

def last_updated=(_last_updated : Time) #

def stale? #

Whether or not this object is stale, i.e. has existed for longer than #last_updated + #ttl seconds.


[View source]
def to_json(json : JSON::Builder) #

def ttl : UInt32 #

def ttl=(_ttl : UInt32) #