Class: CatalogAPI::Metadata
- Inherits:
-
Object
- Object
- CatalogAPI::Metadata
- Defined in:
- lib/catalogapi/metadata.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Metadata
constructor
A new instance of Metadata.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/catalogapi/metadata.rb', line 5 def key @key end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/catalogapi/metadata.rb', line 5 def uri @uri end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/catalogapi/metadata.rb', line 5 def value @value end |