Class: NotionAPI::Client
Overview
acts as the ‘main interface’ to the methods of this package.
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#active_user_header ⇒ Object
readonly
Returns the value of attribute active_user_header.
-
#token_v2 ⇒ Object
readonly
Returns the value of attribute token_v2.
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize(token_v2, active_user_header = nil) ⇒ Client
constructor
A new instance of Client.
Methods inherited from Core
#children, #children_ids, #get_page
Methods included from Utils
Constructor Details
#initialize(token_v2, active_user_header = nil) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 |
# File 'lib/notion_api/client.rb', line 11 def initialize(token_v2, active_user_header = nil) @token_v2 = token_v2 @active_user_header = active_user_header super(token_v2, active_user_header) end |
Instance Attribute Details
#active_user_header ⇒ Object (readonly)
Returns the value of attribute active_user_header.
9 10 11 |
# File 'lib/notion_api/client.rb', line 9 def active_user_header @active_user_header end |
#token_v2 ⇒ Object (readonly)
Returns the value of attribute token_v2.
9 10 11 |
# File 'lib/notion_api/client.rb', line 9 def token_v2 @token_v2 end |