class Writeas::Post
Attributes
appearance[R]
body[R]
created[R]
id[R]
language[R]
rtl[R]
slug[R]
title[R]
token[R]
Public Class Methods
new(response_body)
click to toggle source
Calls superclass method
# File lib/writeas/post.rb, line 6 def initialize(response_body) super(response_body) @id = @data["id"] @slug = @data["slug"] @token = @data["token"] @appearance = @data["appearance"] @language = @data["language"] @rtl = @data["rtl"] @created = @data["created"] @title = @data["title"] @body = @data["body"] @tags = @data["tags"] end