Class: Iglu::Registries::RegistryRef

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

Overview

Interface

Direct Known Subclasses

EmbeddedRegistryRef, HttpRegistryRef

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_priorityObject (readonly)

Returns the value of attribute class_priority.



21
22
23
# File 'lib/iglu-client/registries.rb', line 21

def class_priority
  @class_priority
end

#configObject (readonly)

Returns the value of attribute config.



21
22
23
# File 'lib/iglu-client/registries.rb', line 21

def config
  @config
end

#descriptorObject (readonly)

Returns the value of attribute descriptor.



21
22
23
# File 'lib/iglu-client/registries.rb', line 21

def descriptor
  @descriptor
end

Instance Method Details

#lookup_schema(schema_key) ⇒ Object



23
24
# File 'lib/iglu-client/registries.rb', line 23

def lookup_schema(schema_key)
end

#vendor_matched(schema_key) ⇒ Object



26
27
28
29
30
31
# File 'lib/iglu-client/registries.rb', line 26

def vendor_matched(schema_key)
  matches = @config.vendor_prefixes.map { |p|
    schema_key.vendor.start_with?(p)
  }
  matches.include? true
end