Class: Metalbird::Twitter::RetweetArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/metalbird/twitter/retweet_args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ RetweetArgs

Returns a new instance of RetweetArgs



6
7
8
9
# File 'lib/metalbird/twitter/retweet_args.rb', line 6

def initialize(data)
  fail NoTweetIDError unless data[:tweet_id]
  @tweet_id = data[:tweet_id]
end

Instance Attribute Details

#tweet_idObject (readonly)

Returns the value of attribute tweet_id



4
5
6
# File 'lib/metalbird/twitter/retweet_args.rb', line 4

def tweet_id
  @tweet_id
end