Class: Fog::Hyperv::ComputerCollection
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::Hyperv::ComputerCollection
- Defined in:
- lib/fog/collection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#computer ⇒ Object
Returns the value of attribute computer.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Collection
#all, #create, #get, get_method, #new, requires?
Instance Attribute Details
#computer ⇒ Object
Returns the value of attribute computer.
60 61 62 |
# File 'lib/fog/collection.rb', line 60 def computer @computer end |
Class Method Details
.requires_computer ⇒ Object
56 57 58 |
# File 'lib/fog/collection.rb', line 56 def self.requires_computer requires? << :computer end |
Instance Method Details
#search_attributes ⇒ Object
62 63 64 65 66 |
# File 'lib/fog/collection.rb', line 62 def search_attributes attrs = super attrs[:computer_name] ||= computer.name if computer attrs end |