class Wework::Api::Corp
Attributes
permanent_code[R]
suite[R]
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
Wework::Api::Base::new
# File lib/wework/api/corp.rb, line 9 def initialize(options={}) @suite = options.delete(:suite) @permanent_code = options.delete(:permanent_code) super(options) end
Public Instance Methods
agent(agent_id)
click to toggle source
# File lib/wework/api/corp.rb, line 15 def agent(agent_id) Wework::Api::Agent.new(corp_id: corp_id, agent_id: agent_id, token_store: token_store) end
Private Instance Methods
token_store()
click to toggle source
# File lib/wework/api/corp.rb, line 21 def token_store @token_store ||= Token::CorpToken.new self end