Sha256: 996678eab329fe306e5e57139d62db0e3b51e786581a372eb00f0719a92f1985
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
require 'klout' ## # This module analize and extract score from social analizer http://klout.com module Skore class KloutSkore ## # Include module and clases from Klout include Klout attr_accessor :user ## # Initialize Base and almacenate user information def initialize(api_key, username) Klout.api_key = api_key identity = Identity.find_by_screen_name(username) @user = User.new(identity.id) end ## # Get score for user def score(round=false) if round then @user.score.score.round else @user.score.score end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
skore-0.0.2 | lib/skore/klout.rb |
skore-0.0.1.pre.1 | lib/skore/klout.rb |
skore-0.0.1 | lib/skore/klout.rb |