Module: TsJsonApi::Requestor::UtilityMethods::ClassMethods

Defined in:
lib/ts_json_api/requestor/utility_methods.rb

Instance Method Summary collapse

Instance Method Details

#parse_date(str) ⇒ Object



9
10
11
# File 'lib/ts_json_api/requestor/utility_methods.rb', line 9

def parse_date(str)
	Time.zone.at str.scan(/[0-9]+/)[0].to_i
end