Class: PuppetX::Puppetlabs::Migration::OverviewModel::SourceFile
- Defined in:
- lib/puppet_x/puppetlabs/migration/overview_model.rb
Instance Attribute Summary collapse
- #path ⇒ Object readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, path) ⇒ SourceFile
constructor
A new instance of SourceFile.
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
#path ⇒ Object (readonly)
245 246 247 |
# File 'lib/puppet_x/puppetlabs/migration/overview_model.rb', line 245 def path @path end |
Class Method Details
.many_rels_hash ⇒ Object
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 |