Class: Iknow::Item::Cue

Inherits:
Base
  • Object
show all
Defined in:
lib/iknow/model/item.rb

Constant Summary collapse

ATTRIBUTES =
[:text, :sound, :part_of_speech, :language, :transliterations]
READONLY_ATTRIBUTES =
[:sound]

Instance Method Summary collapse

Methods inherited from Base

attributes, #attributes, deserialize, #deserialize

Constructor Details

#initialize(params = {}) ⇒ Cue

Returns a new instance of Cue.



26
27
28
29
30
31
32
# File 'lib/iknow/model/item.rb', line 26

def initialize(params = {})
  @text             = params[:text]
  @sound            = params[:sound]
  @part_of_speech   = params[:part_of_speech]
  @language         = params[:language]
  @transliterations = params[:transliterations]
end