Class: AlexaSkillsRuby::JsonObjects::Card
- Inherits:
-
AlexaSkillsRuby::JsonObject
- Object
- AlexaSkillsRuby::JsonObject
- AlexaSkillsRuby::JsonObjects::Card
- Defined in:
- lib/alexa_skills_ruby/json_objects/card.rb
Class 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
Class Method Details
.simple(title, content) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/alexa_skills_ruby/json_objects/card.rb', line 7 def self.simple(title, content) card = new card.type = "Simple" card.title = title card.content = content card end |