Class: Appwrite::Models::Oauth2Organization
- Inherits:
-
Object
- Object
- Appwrite::Models::Oauth2Organization
- Defined in:
- lib/appwrite/models/oauth2_organization.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:) ⇒ Oauth2Organization
constructor
A new instance of Oauth2Organization.
- #to_map ⇒ Object
Constructor Details
#initialize(id:) ⇒ Oauth2Organization
Returns a new instance of Oauth2Organization.
8 9 10 11 12 |
# File 'lib/appwrite/models/oauth2_organization.rb', line 8 def initialize( id: ) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/oauth2_organization.rb', line 6 def id @id end |
Class Method Details
.from(map:) ⇒ Object
14 15 16 17 18 |
# File 'lib/appwrite/models/oauth2_organization.rb', line 14 def self.from(map:) Oauth2Organization.new( id: map["$id"] ) end |
Instance Method Details
#to_map ⇒ Object
20 21 22 23 24 |
# File 'lib/appwrite/models/oauth2_organization.rb', line 20 def to_map { "$id": @id } end |