<aside> 👉 Links (Object base class)

CommentObject

FileObject

UserObject

EmojiObject

MentionObject

EquationObject

Notion Ruby Mapping Public API Reference

</aside>

<aside> ℹī¸ ↑ Table of Contents

</aside>

1. Singleton methods

equation_object(extression_or_eo)

eo = EquationObject.equation_object "y = f(x)"
=> #<NotionRubyMapping::EquationObject:0x00000001093d3920 @expression="y = f(x)", @options={"plain_text"=>"y = f(x)"}, @type="equation", @will_update=false>

eo2 = EquationObject.equation_object eo
=> #<NotionRubyMapping::EquationObject:0x00000001093d3920 @expression="y = f(x)", @options={"plain_text"=>"y = f(x)"}, @type="equation", @will_update=false>
# eo and eo2 are equal object.

↑ Table of Contents

2. Instance methods

expression=(str) → str

expression= sets str to expression, and set will_update flag to true.

eo = EquationObject.equation_object "y=f(x)"
=> #<NotionRubyMapping::EquationObject:0x0000000107f85018 @expression="y=f(x)", @options={"plain_text"=>"y=f(x)"}, @type="equation", @will_update=false>
eo.expression = "z = f(x, y)"
=> "z = f(x, y)"
eo
=> #<NotionRubyMapping::EquationObject:0x0000000107f85018 @expression="z = f(x, y)", @options={"plain_text"=>"z = f(x, y)"}, @type="equation", @will_update=true>

↑ Table of Contents