Class: Appwrite::Models::PostgresExtension
- Inherits:
-
Object
- Object
- Appwrite::Models::PostgresExtension
- Defined in:
- lib/appwrite/models/postgres_extension.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, name:, description:, category:) ⇒ PostgresExtension
constructor
A new instance of PostgresExtension.
- #to_map ⇒ Object
Constructor Details
#initialize(key:, name:, description:, category:) ⇒ PostgresExtension
Returns a new instance of PostgresExtension.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/appwrite/models/postgres_extension.rb', line 11 def initialize( key:, name:, description:, category: ) @key = key @name = name @description = description @category = category end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
9 10 11 |
# File 'lib/appwrite/models/postgres_extension.rb', line 9 def category @category end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/appwrite/models/postgres_extension.rb', line 8 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/appwrite/models/postgres_extension.rb', line 6 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/appwrite/models/postgres_extension.rb', line 7 def name @name end |
Class Method Details
.from(map:) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/appwrite/models/postgres_extension.rb', line 23 def self.from(map:) map = { "key" => "", "name" => "", "description" => "", "category" => "" }.merge(map) PostgresExtension.new( key: map["key"], name: map["name"], description: map["description"], category: map["category"] ) end |
Instance Method Details
#to_map ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/appwrite/models/postgres_extension.rb', line 33 def to_map { "key": @key, "name": @name, "description": @description, "category": @category } end |