Class: Twitter::Action::Tweet

Inherits:
Base
  • Object
show all
Includes:
Creatable
Defined in:
lib/twitter/action/tweet.rb

Direct Known Subclasses

Favorite, Reply, Retweet

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods included from Creatable

#created_at

Methods inherited from Base

#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

#max_positionObject (readonly)

Returns the value of attribute max_position.



10
11
12
# File 'lib/twitter/action/tweet.rb', line 10

def max_position
  @max_position
end

#min_positionObject (readonly)

Returns the value of attribute min_position.



10
11
12
# File 'lib/twitter/action/tweet.rb', line 10

def min_position
  @min_position
end

Instance Method Details

#sourcesArray<Twitter::User>

Returns:



13
14
15
16
17
# File 'lib/twitter/action/tweet.rb', line 13

def sources
  @sources = Array(@attrs[:sources]).map do |user|
    Twitter::User.fetch_or_new(user)
  end
end