Last active
September 17, 2016 23:04
-
-
Save piedoom/6e58505ddf80d5159dbe36e59d474bfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "JSON" | |
class BasePost | |
JSON.mapping({ | |
id: {type: Int32} | |
}) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "JSON" | |
require "./base_post" | |
class TextPost < BasePost | |
JSON.mapping({ | |
name: {type: String} | |
}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment