class Wework::Api::Agent
Attributes
agent_id[R]
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
# File lib/wework/api/agent.rb, line 15 def initialize(options={}) @agent_id = options.delete(:agent_id) @agent_id = @agent_id.to_i if @agent_id.to_s =~ /\A\d+\Z/ super(options) end
Public Instance Methods
jsapi_ticket()
click to toggle source
# File lib/wework/api/agent.rb, line 21 def jsapi_ticket jsticket_store.ticket end
Private Instance Methods
jsticket_store()
click to toggle source
# File lib/wework/api/agent.rb, line 27 def jsticket_store @jsticket_store ||= Token::JsTicket.new self end