Permalink
31c306b Jun 24, 2014
@sferik @stve
21 lines (18 sloc) 437 Bytes
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