twitter-status-bot/.gems/gems/twitter-5.11.0/lib/twitter/identity.rb

20 lines
413 B
Ruby
Raw Normal View History

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