Class: PlaylyfeClient::V2::PlayerCollection
- Inherits:
-
Collection
- Object
- Collection
- PlaylyfeClient::V2::PlayerCollection
- Defined in:
- lib/playlyfe_client/v2/collection/player_collection.rb
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
Methods inherited from Collection
#add, #all, #each, #find_all, #first, #last, #size, #to_a
Instance Method Details
#find(str) ⇒ Object
7 8 9 |
# File 'lib/playlyfe_client/v2/collection/player_collection.rb', line 7 def find(str) (@items.detect {|pl| pl.alias.include?(str) || pl.id.include?(str)}) end |