Class: Repla::Dependencies::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/repla/dependencies/lib/model.rb

Overview

Dependency

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, options = {}) ⇒ Dependency

Returns a new instance of Dependency.



6
7
8
9
10
# File 'lib/repla/dependencies/lib/model.rb', line 6

def initialize(name, type, options = {})
  @name = name
  @type = type
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/repla/dependencies/lib/model.rb', line 5

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/repla/dependencies/lib/model.rb', line 5

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/repla/dependencies/lib/model.rb', line 5

def type
  @type
end