Class: ESX::Datastore
- Inherits:
-
Object
- Object
- ESX::Datastore
- Defined in:
- lib/esx.rb
Instance Attribute Summary collapse
-
#_wrapped_object ⇒ Object
Internal use only.
-
#accessible ⇒ Object
Returns the value of attribute accessible.
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#datastore_type ⇒ Object
Returns the value of attribute datastore_type.
-
#free_space ⇒ Object
Returns the value of attribute free_space.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.wrap(ds) ⇒ Object
Internal method.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
642 643 644 |
# File 'lib/esx.rb', line 642 def method_missing(name, *args) @_wrapped_object.send name, *args end |
Instance Attribute Details
#_wrapped_object ⇒ Object
Internal use only
625 626 627 |
# File 'lib/esx.rb', line 625 def _wrapped_object @_wrapped_object end |
#accessible ⇒ Object
Returns the value of attribute accessible.
622 623 624 |
# File 'lib/esx.rb', line 622 def accessible @accessible end |
#capacity ⇒ Object
Returns the value of attribute capacity.
622 623 624 |
# File 'lib/esx.rb', line 622 def capacity @capacity end |
#datastore_type ⇒ Object
Returns the value of attribute datastore_type.
622 623 624 |
# File 'lib/esx.rb', line 622 def datastore_type @datastore_type end |
#free_space ⇒ Object
Returns the value of attribute free_space.
622 623 624 |
# File 'lib/esx.rb', line 622 def free_space @free_space end |
#name ⇒ Object
Returns the value of attribute name.
622 623 624 |
# File 'lib/esx.rb', line 622 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
623 624 625 |
# File 'lib/esx.rb', line 623 def url @url end |
Class Method Details
.wrap(ds) ⇒ Object
Internal method. Do not use
630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/esx.rb', line 630 def self.wrap(ds) _ds = Datastore.new _ds._wrapped_object = ds _ds.name = ds.summary.name _ds.capacity = ds.summary.capacity _ds.free_space = ds.summary.freeSpace _ds.datastore_type = ds.summary.type _ds.accessible = ds.summary.accessible _ds.url = ds.summary.url _ds end |