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