Class: Appwrite::Models::PolicyPasskey
- Inherits:
-
Object
- Object
- Appwrite::Models::PolicyPasskey
- Defined in:
- lib/appwrite/models/policy_passkey.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#origins ⇒ Object
readonly
Returns the value of attribute origins.
-
#rp_id ⇒ Object
readonly
Returns the value of attribute rp_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, rp_id:, origins:) ⇒ PolicyPasskey
constructor
A new instance of PolicyPasskey.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, rp_id:, origins:) ⇒ PolicyPasskey
Returns a new instance of PolicyPasskey.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/policy_passkey.rb', line 10 def initialize( id:, rp_id:, origins: ) @id = id @rp_id = rp_id @origins = origins end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/policy_passkey.rb', line 6 def id @id end |
#origins ⇒ Object (readonly)
Returns the value of attribute origins.
8 9 10 |
# File 'lib/appwrite/models/policy_passkey.rb', line 8 def origins @origins end |
#rp_id ⇒ Object (readonly)
Returns the value of attribute rp_id.
7 8 9 |
# File 'lib/appwrite/models/policy_passkey.rb', line 7 def rp_id @rp_id end |
Class Method Details
.from(map:) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/appwrite/models/policy_passkey.rb', line 20 def self.from(map:) map = { "$id" => "", "rpId" => "", "origins" => [] }.merge(map) PolicyPasskey.new( id: map["$id"], rp_id: map["rpId"], origins: map["origins"] ) end |
Instance Method Details
#to_map ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/appwrite/models/policy_passkey.rb', line 29 def to_map { "$id": @id, "rpId": @rp_id, "origins": @origins } end |