Class: MySpace::Friendship
- Defined in:
- lib/myspace/classes/friendship.rb
Instance Attribute Summary collapse
-
#friendship ⇒ Object
(also: #friends)
Returns the value of attribute friendship.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Methods inherited from Object
build_request, #initialize, json_to_obj, json_to_obj_collection
Constructor Details
This class inherits a constructor from MySpace::Object
Instance Attribute Details
#friendship ⇒ Object Also known as: friends
Returns the value of attribute friendship.
12 13 14 |
# File 'lib/myspace/classes/friendship.rb', line 12 def friendship @friendship end |
#user ⇒ Object
Returns the value of attribute user.
11 12 13 |
# File 'lib/myspace/classes/friendship.rb', line 11 def user @user end |
Class Method Details
.get(userId, friendId) ⇒ Object
16 17 18 19 20 |
# File 'lib/myspace/classes/friendship.rb', line 16 def self.get(userId,friendId) o = super([userId,friendId]) o.friendship = o.friendship.collect {|f| MySpace::FriendStatus.new(f) } o end |
.get_raw(userId, friendId, format = "json") ⇒ Object
22 23 24 |
# File 'lib/myspace/classes/friendship.rb', line 22 def self.get_raw(userId,friendId,format="json") super([userId,friendId],nil,format) end |