Class: Tweetkit::Response::Tweets::Tweet::Attachments

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attachments) ⇒ Attachments

Returns a new instance of Attachments.



189
190
191
192
193
194
# File 'lib/tweetkit/response.rb', line 189

def initialize(attachments)
  return unless attachments

  @media_keys = attachments['media_keys']
  @poll_ids = attachments['poll_ids']
end

Instance Attribute Details

#media_keysObject

Returns the value of attribute media_keys.



187
188
189
# File 'lib/tweetkit/response.rb', line 187

def media_keys
  @media_keys
end

#poll_idsObject

Returns the value of attribute poll_ids.



187
188
189
# File 'lib/tweetkit/response.rb', line 187

def poll_ids
  @poll_ids
end