Class: Stew::Community::XmlClientResponseFriends
- Inherits:
-
Object
- Object
- Stew::Community::XmlClientResponseFriends
- Defined in:
- lib/stew/community/xml_client/xml_client_response_friends.rb
Overview
A friends response from the Xml Client
Instance Method Summary collapse
- #friends ⇒ Object
-
#initialize(response) ⇒ XmlClientResponseFriends
constructor
A new instance of XmlClientResponseFriends.
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
#friends ⇒ Object
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 |