Class: DNApi::GemDep

Inherits:
Struct
  • Object
show all
Defined in:
lib/dnapi/gem_dep.rb

Instance Attribute Summary collapse

Attributes inherited from Struct

#parent

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

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/dnapi/gem_dep.rb', line 2

def name
  @name
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



2
3
4
# File 'lib/dnapi/gem_dep.rb', line 2

def source
  @source
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



2
3
4
# File 'lib/dnapi/gem_dep.rb', line 2

def version
  @version
end

Instance Method Details

#to_legacy_hashObject



5
6
7
# File 'lib/dnapi/gem_dep.rb', line 5

def to_legacy_hash
  to_hash.reject {|k,v| v.nil? }
end