Class: Smartfm::Item::Cue

Inherits:
Base
  • Object
show all
Defined in:
lib/smartfm/models/item.rb

Constant Summary collapse

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

Instance Method Summary collapse

Methods inherited from Base

attributes, #attributes

Constructor Details

#initialize(params = {}) ⇒ Cue

Returns a new instance of Cue.



33
34
35
36
37
38
39
40
41
# File 'lib/smartfm/models/item.rb', line 33

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