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.
90 91 92 |
# File 'lib/cute/g5k_api.rb', line 90 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.
86 87 88 |
# File 'lib/cute/g5k_api.rb', line 86 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.
82 83 84 |
# File 'lib/cute/g5k_api.rb', line 82 def uids return self.map { |it| it['uid'] } end |