Sha256: e0dbea3c6b574bb561bc817d5494f7db779dcd2ef468901768c274b71a1f5658
Contents?: true
Size: 595 Bytes
Versions: 9
Compression:
Stored size: 595 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.to_s =~ /\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
9 entries across 9 versions & 1 rubygems