class Teambition::Wrapper

Namespace wrapper for Teambition::API to keep outside clean

Public Class Methods

new(obj, msg) click to toggle source

Create a delegator @param obj [Object] object to delegate @param msg [Symbol] method of obj returning the teambition token

# File lib/teambition/wrapper.rb, line 9
def initialize(obj, msg)
  @obj = obj
  @msg = msg
end

Public Instance Methods

token() click to toggle source

Delegate method for the teambition token

# File lib/teambition/wrapper.rb, line 15
def token
  @obj.send(@msg)
end