Class: Writeas::MarkdownResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/writeas/markdown_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#code

Instance Method Summary collapse

Constructor Details

#initialize(response_body) ⇒ MarkdownResponse

Returns a new instance of MarkdownResponse.



7
8
9
10
# File 'lib/writeas/markdown_response.rb', line 7

def initialize(response_body)
  super(response_body)
  @body = @data["body"]
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/writeas/markdown_response.rb', line 5

def body
  @body
end