Class: Iglu::Registries::RegistryRefConfig
- Inherits:
-
Object
- Object
- Iglu::Registries::RegistryRefConfig
- Defined in:
- lib/iglu-client/registries.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#vendor_prefixes ⇒ Object
readonly
Returns the value of attribute vendor_prefixes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, priority, vendor_prefixes) ⇒ RegistryRefConfig
constructor
A new instance of RegistryRefConfig.
Constructor Details
#initialize(name, priority, vendor_prefixes) ⇒ RegistryRefConfig
Returns a new instance of RegistryRefConfig.
8 9 10 11 12 |
# File 'lib/iglu-client/registries.rb', line 8 def initialize(name, priority, vendor_prefixes) @name = name @priority = priority @vendor_prefixes = vendor_prefixes end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/iglu-client/registries.rb', line 6 def name @name end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
6 7 8 |
# File 'lib/iglu-client/registries.rb', line 6 def priority @priority end |
#vendor_prefixes ⇒ Object (readonly)
Returns the value of attribute vendor_prefixes.
6 7 8 |
# File 'lib/iglu-client/registries.rb', line 6 def vendor_prefixes @vendor_prefixes end |
Class Method Details
.parse(config) ⇒ Object
14 15 16 |
# File 'lib/iglu-client/registries.rb', line 14 def self.parse(config) RegistryRefConfig.new config[:name], config[:priority], config[:vendorPrefixes] end |