Sha256: 65bdb94905bd4b7a29667ffce52ac781a1d45d6d0aab39ffd7126e7971423887

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

module Twitch
  class User
    # All fields are read-only until update support is implemented
    attr_reader :id, :login, :display_name, :type, :broadcaster_type, :description, :profile_image_url, :offline_image_url, :view_count

    def initialize(attributes = {})
      attributes.each do |k, v|
        instance_variable_set("@#{k}", v)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twitch-api-0.1.0 lib/twitch/user.rb
twitch-api-0.0.2 lib/twitch/user.rb
twitch-api-0.0.1 lib/twitch/user.rb