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