Class: NotionRuby
- Inherits:
-
Object
- Object
- NotionRuby
- Includes:
- API::Blocks, API::Databases, API::Pages, API::Search, API::Users
- Defined in:
- lib/notion_ruby.rb,
lib/notion_ruby/errors.rb,
lib/notion_ruby/version.rb,
lib/notion_ruby/api/pages.rb,
lib/notion_ruby/api/users.rb,
lib/notion_ruby/api/blocks.rb,
lib/notion_ruby/api/search.rb,
lib/notion_ruby/connection.rb,
lib/notion_ruby/api/databases.rb,
lib/notion_ruby/state_methods.rb,
lib/notion_ruby/resource_proxy.rb
Defined Under Namespace
Modules: API, CRUD Classes: BadGateway, BadRequest, Connection, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, NotImplemented, ResourceProxy, ServiceUnavailable, Unauthorized, UnprocessableEntity
Constant Summary collapse
- VERSION =
"0.1.1"
- NOTION_VERSION =
"2021-05-13"
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ NotionRuby
constructor
A new instance of NotionRuby.
Methods included from API::Users
Methods included from API::Search
Methods included from API::Pages
Methods included from API::Databases
Methods included from API::Blocks
Constructor Details
#initialize(options = {}, &block) ⇒ NotionRuby
Returns a new instance of NotionRuby.
23 24 25 26 27 |
# File 'lib/notion_ruby.rb', line 23 def initialize( = {}, &block) @options = @block = block if block @connection = NotionRuby::Connection.new(, &block) end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
15 16 17 |
# File 'lib/notion_ruby.rb', line 15 def connection @connection end |