Class: ExportName

Inherits:
Object
  • Object
show all
Defined in:
lib/componentize_any/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (readonly)

Returns the value of attribute component.



88
89
90
# File 'lib/componentize_any/dsl.rb', line 88

def component
  @component
end

#interfaceObject (readonly)

Returns the value of attribute interface.



89
90
91
# File 'lib/componentize_any/dsl.rb', line 89

def interface
  @interface
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



87
88
89
# File 'lib/componentize_any/dsl.rb', line 87

def namespace
  @namespace
end

#versionObject (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_nameObject



102
103
104
# File 'lib/componentize_any/dsl.rb', line 102

def full_name
  "#{@namespace}:#{@component}/#{@interface}@#{@version}"
end

#package_nameObject



98
99
100
# File 'lib/componentize_any/dsl.rb', line 98

def package_name
  "#{@namespace}:#{@component}@#{@version}"
end