Class: Cute::G5K::G5KArray Private

Inherits:
Array
  • Object
show all
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

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_selfObject

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

#uidsObject

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