Sha256: c44f04f678bcc7eb755abec3f54690cf01f55ed649d8cd9bcc3b879a85aa70ab

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 Bytes

Contents

require 'equalizer'
require 'twitter/base'

module Twitter
  class Identity < Twitter::Base
    include Equalizer.new(:id)
    # @return [Integer]
    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

10 entries across 10 versions & 1 rubygems

Version Path
twitter-7.0.0 lib/twitter/identity.rb
twitter-6.2.0 lib/twitter/identity.rb
twitter-6.1.0 lib/twitter/identity.rb
twitter-6.0.0 lib/twitter/identity.rb
twitter-5.17.0 lib/twitter/identity.rb
twitter-5.16.0 lib/twitter/identity.rb
twitter-5.15.0 lib/twitter/identity.rb
twitter-5.14.0 lib/twitter/identity.rb
twitter-5.13.0 lib/twitter/identity.rb
twitter-5.12.0 lib/twitter/identity.rb