Class: PuppetX::Puppetlabs::Migration::OverviewModel::SourceFile

Inherits:
Entity
  • Object
show all
Defined in:
lib/puppet_x/puppetlabs/migration/overview_model.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#<=>, #eql?, from_hash, #hash, #id, init_relationships, many_relationship, #many_relationship, #one_relationship, simple_name

Methods included from ModelObject

#initialize_from_hash, #to_hash

Constructor Details

#initialize(id, path) ⇒ SourceFile

Returns a new instance of SourceFile.



247
248
249
250
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 247

def initialize(id, path)
  super(id)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)



245
246
247
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 245

def path
  @path
end

Class Method Details

.many_rels_hashObject



252
253
254
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 252

def self.many_rels_hash
  { :locations => Location.instance_method(:file_id) }
end