Sha256: dccc031a1bafbe677172a360e6d8b5aa1e7f8634eff9ed1426e3166a69d5c3ab
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
module Wework module Api class Agent < Base include Methods::Agent include Methods::Message include Methods::Menu include Methods::Checkin include Methods::Approval attr_reader :agent_id def initialize(options={}) @agent_id = options.delete(:agent_id) @agent_id = @agent_id.to_i if @agent_id && @agent_id.match?(/\A\d+\Z/) super(options) end def jsapi_ticket jsticket_store.ticket end private def jsticket_store @jsticket_store ||= Token::JsTicket.new self end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wework-1.1.1 | lib/wework/api/agent.rb |
wework-1.1.0 | lib/wework/api/agent.rb |