Class: ExportName
- Inherits:
-
Object
- Object
- ExportName
- Defined in:
- lib/componentize_any/dsl.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(namespace, component, interface, version) ⇒ ExportName
constructor
A new instance of ExportName.
- #package_name ⇒ Object
Constructor Details
#initialize(namespace, component, interface, version) ⇒ ExportName
Returns a new instance of ExportName.
91 92 93 94 95 96 |
# File 'lib/componentize_any/dsl.rb', line 91 def initialize(namespace, component, interface, version) @namespace = namespace @component = component @interface = interface @version = version end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
88 89 90 |
# File 'lib/componentize_any/dsl.rb', line 88 def component @component end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
89 90 91 |
# File 'lib/componentize_any/dsl.rb', line 89 def interface @interface end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
87 88 89 |
# File 'lib/componentize_any/dsl.rb', line 87 def namespace @namespace end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
90 91 92 |
# File 'lib/componentize_any/dsl.rb', line 90 def version @version end |
Instance Method Details
#full_name ⇒ Object
102 103 104 |
# File 'lib/componentize_any/dsl.rb', line 102 def full_name "#{@namespace}:#{@component}/#{@interface}@#{@version}" end |
#package_name ⇒ Object
98 99 100 |
# File 'lib/componentize_any/dsl.rb', line 98 def package_name "#{@namespace}:#{@component}@#{@version}" end |