Class: Appwrite::Models::OAuth2Apple
- Inherits:
-
Object
- Object
- Appwrite::Models::OAuth2Apple
- Defined in:
- lib/appwrite/models/o_auth2_apple.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key_id ⇒ Object
readonly
Returns the value of attribute key_id.
-
#p8_file ⇒ Object
readonly
Returns the value of attribute p8_file.
-
#service_id ⇒ Object
readonly
Returns the value of attribute service_id.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, service_id:, key_id:, team_id:, p8_file:) ⇒ OAuth2Apple
constructor
A new instance of OAuth2Apple.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, service_id:, key_id:, team_id:, p8_file:) ⇒ OAuth2Apple
Returns a new instance of OAuth2Apple.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 13 def initialize( id:, enabled:, service_id:, key_id:, team_id:, p8_file: ) @id = id @enabled = enabled @service_id = service_id @key_id = key_id @team_id = team_id @p8_file = p8_file end |
Instance Attribute Details
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 7 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 6 def id @id end |
#key_id ⇒ Object (readonly)
Returns the value of attribute key_id.
9 10 11 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 9 def key_id @key_id end |
#p8_file ⇒ Object (readonly)
Returns the value of attribute p8_file.
11 12 13 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 11 def p8_file @p8_file end |
#service_id ⇒ Object (readonly)
Returns the value of attribute service_id.
8 9 10 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 8 def service_id @service_id end |
#team_id ⇒ Object (readonly)
Returns the value of attribute team_id.
10 11 12 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 10 def team_id @team_id end |
Class Method Details
.from(map:) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 29 def self.from(map:) OAuth2Apple.new( id: map["$id"], enabled: map["enabled"], service_id: map["serviceId"], key_id: map["keyId"], team_id: map["teamId"], p8_file: map["p8File"] ) end |
Instance Method Details
#to_map ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/appwrite/models/o_auth2_apple.rb', line 40 def to_map { "$id": @id, "enabled": @enabled, "serviceId": @service_id, "keyId": @key_id, "teamId": @team_id, "p8File": @p8_file } end |