Class: NotionRubyMapping::TemplateObject
- Inherits:
-
Object
- Object
- NotionRubyMapping::TemplateObject
- Defined in:
- lib/notion_ruby_mapping/objects/template_object.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_default ⇒ Object
readonly
Returns the value of attribute is_default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json: json) ⇒ TemplateObject
constructor
A new instance of TemplateObject.
-
#property_values_json ⇒ Hash{String->String, Boolean
].
Constructor Details
#initialize(json: json) ⇒ TemplateObject
Returns a new instance of TemplateObject.
3 4 5 6 7 |
# File 'lib/notion_ruby_mapping/objects/template_object.rb', line 3 def initialize(json: json) @id = json["id"] @name = json["name"] @is_default = json["is_default"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/notion_ruby_mapping/objects/template_object.rb', line 8 def id @id end |
#is_default ⇒ Object (readonly)
Returns the value of attribute is_default.
8 9 10 |
# File 'lib/notion_ruby_mapping/objects/template_object.rb', line 8 def is_default @is_default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/notion_ruby_mapping/objects/template_object.rb', line 8 def name @name end |
Instance Method Details
#property_values_json ⇒ Hash{String->String, Boolean
Returns ].
11 12 13 14 15 16 17 |
# File 'lib/notion_ruby_mapping/objects/template_object.rb', line 11 def property_values_json { "id" => @id, "name" => @name, "is_default" => @is_default } end |