Class: Twitter::Relationship

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/relationship.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#sourceTwitter::User

Returns:



8
9
10
# File 'lib/twitter/relationship.rb', line 8

def source
  @source ||= Twitter::User.new(@attrs['source']) unless @attrs['source'].nil?
end

#targetTwitter::User

Returns:



13
14
15
# File 'lib/twitter/relationship.rb', line 13

def target
  @target ||= Twitter::User.new(@attrs['target']) unless @attrs['target'].nil?
end