Class: NotionRuby::API::Blocks::Proxy

Inherits:
ResourceProxy show all
Defined in:
lib/notion_ruby/api/blocks.rb

Instance Attribute Summary

Attributes inherited from ResourceProxy

#connection, #id, #params, #path_prefix

Instance Method Summary collapse

Methods inherited from ResourceProxy

#build_prefix, #initialize, #method_missing, #raw, #respond_to_missing?, #subject

Methods included from CRUD

#create, #get, #patch

Constructor Details

This class inherits a constructor from NotionRuby::ResourceProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NotionRuby::ResourceProxy

Instance Method Details

#childrenObject



15
16
17
18
# File 'lib/notion_ruby/api/blocks.rb', line 15

def children
  prefix = "#{path_prefix}/children"
  NotionRuby::API::Blocks::Children::Proxy.new(connection, prefix)
end