Class: Appwrite::Models::DedicatedDatabasePITRWindows
- Inherits:
-
Object
- Object
- Appwrite::Models::DedicatedDatabasePITRWindows
- Defined in:
- lib/appwrite/models/dedicated_database_pitr_windows.rb
Instance Attribute Summary collapse
-
#earliest ⇒ Object
readonly
Returns the value of attribute earliest.
-
#latest ⇒ Object
readonly
Returns the value of attribute latest.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(earliest:, latest:) ⇒ DedicatedDatabasePITRWindows
constructor
A new instance of DedicatedDatabasePITRWindows.
- #to_map ⇒ Object
Constructor Details
#initialize(earliest:, latest:) ⇒ DedicatedDatabasePITRWindows
Returns a new instance of DedicatedDatabasePITRWindows.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/dedicated_database_pitr_windows.rb', line 9 def initialize( earliest:, latest: ) @earliest = earliest @latest = latest end |
Instance Attribute Details
#earliest ⇒ Object (readonly)
Returns the value of attribute earliest.
6 7 8 |
# File 'lib/appwrite/models/dedicated_database_pitr_windows.rb', line 6 def earliest @earliest end |
#latest ⇒ Object (readonly)
Returns the value of attribute latest.
7 8 9 |
# File 'lib/appwrite/models/dedicated_database_pitr_windows.rb', line 7 def latest @latest end |
Class Method Details
.from(map:) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/appwrite/models/dedicated_database_pitr_windows.rb', line 17 def self.from(map:) map = { "earliest" => "", "latest" => "" }.merge(map) DedicatedDatabasePITRWindows.new( earliest: map["earliest"], latest: map["latest"] ) end |
Instance Method Details
#to_map ⇒ Object
25 26 27 28 29 30 |
# File 'lib/appwrite/models/dedicated_database_pitr_windows.rb', line 25 def to_map { "earliest": @earliest, "latest": @latest } end |