Sha256: 73ba0a7c758c6358317bfc2f8cc52d8d241aaddab9e51a951b7ffdc419ebb082

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

require 'equalizer'
require 'twitter/base'

module Twitter
  class Identity < Twitter::Base
    include Equalizer.new(:id)
    attr_reader :id

    # Initializes a new object
    #
    # @param attrs [Hash]
    # @raise [ArgumentError] Error raised when supplied argument is missing an :id key.
    # @return [Twitter::Identity]
    def initialize(attrs={})
      attrs.fetch(:id)
      super
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter-5.1.1 lib/twitter/identity.rb
twitter-5.1.0 lib/twitter/identity.rb
twitter-5.0.1 lib/twitter/identity.rb
twitter-5.0.0 lib/twitter/identity.rb