Class: Stew::Community::XmlClientResponseFriends

Inherits:
Object
  • Object
show all
Defined in:
lib/stew/community/xml_client/xml_client_response_friends.rb

Overview

A friends response from the Xml Client

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ XmlClientResponseFriends

Returns a new instance of XmlClientResponseFriends.



5
6
7
# File 'lib/stew/community/xml_client/xml_client_response_friends.rb', line 5

def initialize(response)
  @response = response
end

Instance Method Details

#friendsObject



9
10
11
# File 'lib/stew/community/xml_client/xml_client_response_friends.rb', line 9

def friends
  has_friends? ? @response['friendsList']['friends']['friend'] : []
end