Sha256: 76e7a71e9c855571ec53892e385b2574da85f7dc5cb62803cab73c6d532aa0c2

Contents?: true

Size: 256 Bytes

Versions: 7

Compression:

Stored size: 256 Bytes

Contents

module Spreaker
  class User
    attr_reader :properties

    def initialize(properties:)
      @properties = properties
    end

    def self.client
      @@client ||= Spreaker::Client.new
    end

    def id
      properties["user_id"]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spreaker-0.1.6 lib/spreaker/user.rb
spreaker-0.1.5 lib/spreaker/user.rb
spreaker-0.1.4 lib/spreaker/user.rb
spreaker-0.1.3 lib/spreaker/user.rb
spreaker-0.1.2 lib/spreaker/user.rb
spreaker-0.1.1 lib/spreaker/user.rb
spreaker-0.1.0 lib/spreaker/user.rb