Sha256: 218f242eda051a9d0c2442a8eae5aad0441afc32e5db7996b0d8ae20a6a98430

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

module Twitch
  class UserFollow
    attr_reader :from_id, :to_id, :followed_at

    def initialize(attributes = {})
      @from_id = attributes['from_id']
      @to_id = attributes['to_id']
      @followed_at = Time.iso8601(attributes['followed_at'])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitch-api-0.1.0 lib/twitch/user_follow.rb