Class: CatalogAPI::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/catalogapi/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Metadata

Returns a new instance of Metadata.



6
7
8
9
10
# File 'lib/catalogapi/metadata.rb', line 6

def initialize(opts)
  @key = opts[:key]
  @url = opts[:url]
  @value = opts[:value]
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/catalogapi/metadata.rb', line 5

def key
  @key
end

#uriObject (readonly)

Returns the value of attribute uri.



5
6
7
# File 'lib/catalogapi/metadata.rb', line 5

def uri
  @uri
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/catalogapi/metadata.rb', line 5

def value
  @value
end