Class: CSKitStrongs::LexiconEntry
- Inherits:
-
Struct
- Object
- Struct
- CSKitStrongs::LexiconEntry
- Defined in:
- lib/cskit-strongs/lexicon_entry.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cskit-strongs/lexicon_entry.rb', line 8 def self.from_hash(hash = {}) new( *(LEXICON_ATTRS.map do |attr| hash[attr.to_sym] || hash[attr.to_s] end) ) end |