Module: OurKudos::Acts::Client::InstanceMethods

Defined in:
lib/ourkudos/acts/client.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#clientObject



31
32
33
# File 'lib/ourkudos/acts/client.rb', line 31

def client
  @client ||= OAuth2::Client.new self.application_id, self.application_secret, :site => self.ourkudos_host
end

#ourkudosObject



35
36
37
# File 'lib/ourkudos/acts/client.rb', line 35

def ourkudos
  @ourkudos ||= OAuth2::AccessToken.new(client, self.authentication_token)
end