Sha256: c5cdf7fcfc1540dace3a06cfd299b8227d7a73582cc8a5c1a51fe299bd305f0c

Contents?: true

Size: 221 Bytes

Versions: 5

Compression:

Stored size: 221 Bytes

Contents

module AlexaSkillsRuby
  module JsonObjects
    class Intent < JsonObject
      attributes :name, :slots

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexa_skills_ruby-1.1.0 lib/alexa_skills_ruby/json_objects/intent.rb
alexa_skills_ruby-1.0.0 lib/alexa_skills_ruby/json_objects/intent.rb
alexa_skills_ruby-0.0.7 lib/alexa_skills_ruby/json_objects/intent.rb
alexa_skills_ruby-0.0.6 lib/alexa_skills_ruby/json_objects/intent.rb
alexa_skills_ruby-0.0.5 lib/alexa_skills_ruby/json_objects/intent.rb