Class: Iglu::Registries::RegistryRefConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/iglu-client/registries.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/iglu-client/registries.rb', line 6

def name
  @name
end

#priorityObject (readonly)

Returns the value of attribute priority.



6
7
8
# File 'lib/iglu-client/registries.rb', line 6

def priority
  @priority
end

#vendor_prefixesObject (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