Class: AlexaSkillsRuby::JsonObjects::Intent

Inherits:
AlexaSkillsRuby::JsonObject show all
Defined in:
lib/alexa_skills_ruby/json_objects/intent.rb

Instance Method Summary collapse

Methods inherited from AlexaSkillsRuby::JsonObject

#as_json, attribute, inherited, #initialize, json_object_attribute, #populate_from_json, #serialize_attributes, #to_json

Constructor Details

This class inherits a constructor from AlexaSkillsRuby::JsonObject

Instance Method Details

#slots=(val) ⇒ Object



6
7
8
# File 'lib/alexa_skills_ruby/json_objects/intent.rb', line 6

def slots=(val)
  @slots = Hash[(val || {}).map { |k, v| [k, v['value']] }]
end