Class: Appwrite::Models::PlatformAndroid
- Inherits:
-
Object
- Object
- Appwrite::Models::PlatformAndroid
- Defined in:
- lib/appwrite/models/platform_android.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
readonly
Returns the value of attribute application_id.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#fingerprints ⇒ Object
readonly
Returns the value of attribute fingerprints.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, name:, type:, application_id:, fingerprints:) ⇒ PlatformAndroid
constructor
A new instance of PlatformAndroid.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, name:, type:, application_id:, fingerprints:) ⇒ PlatformAndroid
Returns a new instance of PlatformAndroid.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/appwrite/models/platform_android.rb', line 14 def initialize( id:, created_at:, updated_at:, name:, type:, application_id:, fingerprints: ) @id = id @created_at = created_at @updated_at = updated_at @name = name @type = validate_type(type) @application_id = application_id @fingerprints = fingerprints end |
Instance Attribute Details
#application_id ⇒ Object (readonly)
Returns the value of attribute application_id.
11 12 13 |
# File 'lib/appwrite/models/platform_android.rb', line 11 def application_id @application_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/platform_android.rb', line 7 def created_at @created_at end |
#fingerprints ⇒ Object (readonly)
Returns the value of attribute fingerprints.
12 13 14 |
# File 'lib/appwrite/models/platform_android.rb', line 12 def fingerprints @fingerprints end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/platform_android.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/appwrite/models/platform_android.rb', line 9 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/appwrite/models/platform_android.rb', line 10 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/platform_android.rb', line 8 def updated_at @updated_at end |
Class Method Details
.from(map:) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/appwrite/models/platform_android.rb', line 32 def self.from(map:) map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "applicationId" => "", "fingerprints" => [] }.merge(map) PlatformAndroid.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], name: map["name"], type: map["type"], application_id: map["applicationId"], fingerprints: map["fingerprints"] ) end |
Instance Method Details
#to_map ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/appwrite/models/platform_android.rb', line 45 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "name": @name, "type": @type, "applicationId": @application_id, "fingerprints": @fingerprints } end |