Sha256: 0ef3a6838de88f20524adcf3d2f8b23fb13741c44ff73a313a22d3f4171d1f40

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents

module AlexaSkillsRuby
  module JsonObjects
    class Card < JsonObject
      attributes :type, :title, :content, :text
      json_object_attributes :image, Image

      def self.simple(title, content)
        card = new
        card.type = "Simple"
        card.title = title
        card.content = content
        card
      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/card.rb
alexa_skills_ruby-1.0.0 lib/alexa_skills_ruby/json_objects/card.rb
alexa_skills_ruby-0.0.7 lib/alexa_skills_ruby/json_objects/card.rb
alexa_skills_ruby-0.0.6 lib/alexa_skills_ruby/json_objects/card.rb
alexa_skills_ruby-0.0.5 lib/alexa_skills_ruby/json_objects/card.rb