Class: SimpleAcp::Models::Annotations
- Defined in:
- lib/simple_acp/models/metadata.rb
Overview
Annotations for platform-specific metadata
Instance Method Summary collapse
Methods inherited from Base
#==, attribute, attributes, from_hash, #hash, #initialize, own_attributes, #to_json
Constructor Details
This class inherits a constructor from SimpleAcp::Models::Base
Instance Method Details
#[](key) ⇒ Object
83 84 85 |
# File 'lib/simple_acp/models/metadata.rb', line 83 def [](key) @extra[key] end |
#[]=(key, value) ⇒ Object
87 88 89 |
# File 'lib/simple_acp/models/metadata.rb', line 87 def []=(key, value) @extra[key] = value end |
#to_h ⇒ Object
91 92 93 94 95 |
# File 'lib/simple_acp/models/metadata.rb', line 91 def to_h hash = super @extra&.each { |k, v| hash[k] = v } hash end |