Class: Papers::DependencySpecification
- Inherits:
-
Object
- Object
- Papers::DependencySpecification
- Defined in:
- lib/papers/dependency_specification.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#license ⇒ Object
Returns the value of attribute license.
-
#license_url ⇒ Object
Returns the value of attribute license_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project_url ⇒ Object
Returns the value of attribute project_url.
Instance Method Summary collapse
- #acceptable_license? ⇒ Boolean
-
#initialize(options) ⇒ DependencySpecification
constructor
A new instance of DependencySpecification.
Constructor Details
#initialize(options) ⇒ DependencySpecification
Returns a new instance of DependencySpecification.
5 6 7 8 9 10 |
# File 'lib/papers/dependency_specification.rb', line 5 def initialize() @name = [:name] @license = [:license] @license_url = [:license_url] @project_url = [:project_url] end |
Instance Attribute Details
#license ⇒ Object
Returns the value of attribute license.
3 4 5 |
# File 'lib/papers/dependency_specification.rb', line 3 def license @license end |
#license_url ⇒ Object
Returns the value of attribute license_url.
3 4 5 |
# File 'lib/papers/dependency_specification.rb', line 3 def license_url @license_url end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/papers/dependency_specification.rb', line 3 def name @name end |
#project_url ⇒ Object
Returns the value of attribute project_url.
3 4 5 |
# File 'lib/papers/dependency_specification.rb', line 3 def project_url @project_url end |