Class: DNApi::GemDep
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Struct
Instance Method Summary collapse
Methods inherited from Struct
#==, _many, #_many, #_many_values, _ones, #_ones, #_ones_values, _umembers, belongs_to, from, #initialize, #inspect, many, map, one, #to_hash, #umember_inspect, unserialized_member
Methods included from Test::Ext
#default_fauxture_name, #fixture, #generate, #generate_attributes, #pick
Constructor Details
This class inherits a constructor from DNApi::Struct
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/dnapi/gem_dep.rb', line 2 def name @name end |
#source ⇒ Object
Returns the value of attribute source
2 3 4 |
# File 'lib/dnapi/gem_dep.rb', line 2 def source @source end |
#version ⇒ Object
Returns the value of attribute version
2 3 4 |
# File 'lib/dnapi/gem_dep.rb', line 2 def version @version end |
Instance Method Details
#to_legacy_hash ⇒ Object
5 6 7 |
# File 'lib/dnapi/gem_dep.rb', line 5 def to_legacy_hash to_hash.reject {|k,v| v.nil? } end |