class QuestradeApi::REST::Time
@author Bruno Meira <goesmeira@gmail.com>
Public Class Methods
endpoint()
click to toggle source
# File lib/questrade_api/rest/time.rb, line 23 def self.endpoint "#{BASE_ENDPOINT}/time" end
new(authorization)
click to toggle source
Calls superclass method
QuestradeApi::REST::Base::new
# File lib/questrade_api/rest/time.rb, line 7 def initialize(authorization) super(authorization) end
Public Instance Methods
fetch()
click to toggle source
Calls superclass method
QuestradeApi::REST::Base#fetch
# File lib/questrade_api/rest/time.rb, line 11 def fetch response = super if raw_body build_data(raw_body) data.time = DateTime.parse(data.time) response = data.time end response end