Class: SimpleAcp::Models::CitationMetadata
- Defined in:
- lib/simple_acp/models/metadata.rb
Overview
Citation metadata for source attribution
Class Method Summary collapse
Methods inherited from Base
#==, attribute, attributes, #hash, #initialize, own_attributes, #to_h, #to_json
Constructor Details
This class inherits a constructor from SimpleAcp::Models::Base
Class Method Details
.from_hash(hash) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/simple_acp/models/metadata.rb', line 14 def self.from_hash(hash) return nil if hash.nil? return nil unless hash["kind"] == "citation" || hash[:kind] == "citation" super end |