Class: Cute::G5K::G5KArray Private
- Inherits:
-
Array
- Object
- Array
- Cute::G5K::G5KArray
- Defined in:
- lib/cute/g5k_api.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #rel(r) ⇒ Object private
- #rel_self ⇒ Object private
- #uids ⇒ Object private
Instance Method Details
#rel(r) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 |
# File 'lib/cute/g5k_api.rb', line 97 def rel(r) return self['links'].detect { |x| x['rel'] == r }['href'] end |
#rel_self ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
93 94 95 |
# File 'lib/cute/g5k_api.rb', line 93 def rel_self return rel('self') end |
#uids ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
89 90 91 |
# File 'lib/cute/g5k_api.rb', line 89 def uids return self.map { |it| it['uid'] } end |