# File lib/rbvmomi/basic_types.rb, line 48 def find_prop_desc name full_props_desc.find { |x| x['name'] == name.to_s } end
# File lib/rbvmomi/basic_types.rb, line 44 def full_props_desc @full_props_desc ||= (self == ObjectWithProperties ? [] : superclass.full_props_desc) + props_desc end
# File lib/rbvmomi/basic_types.rb, line 40 def full_props_set @full_props_set ||= Set.new(full_props_desc.map { |x| x['name'] }) end
# File lib/rbvmomi/basic_types.rb, line 30 def init name=self.name, props=[] super name @props_desc = props @props_desc.each do |d| sym = d['name'].to_sym define_method(sym) { _get_property sym } define_method(:"#{sym}=") { |x| _set_property sym, x } end end
# File lib/rbvmomi/basic_types.rb, line 53 def _get_property sym fail 'unimplemented' end
# File lib/rbvmomi/basic_types.rb, line 57 def _set_property sym, val fail 'unimplemented' end