Class: Appwrite::Models::Function
- Inherits:
-
Object
- Object
- Appwrite::Models::Function
- Defined in:
- lib/appwrite/models/function.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#deployment ⇒ Object
readonly
Returns the value of attribute deployment.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#execute ⇒ Object
readonly
Returns the value of attribute execute.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#runtime ⇒ Object
readonly
Returns the value of attribute runtime.
-
#schedule ⇒ Object
readonly
Returns the value of attribute schedule.
-
#schedule_next ⇒ Object
readonly
Returns the value of attribute schedule_next.
-
#schedule_previous ⇒ Object
readonly
Returns the value of attribute schedule_previous.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#vars ⇒ Object
readonly
Returns the value of attribute vars.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, execute:, name:, status:, runtime:, deployment:, vars:, events:, schedule:, schedule_next:, schedule_previous:, timeout:) ⇒ Function
constructor
A new instance of Function.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, execute:, name:, status:, runtime:, deployment:, vars:, events:, schedule:, schedule_next:, schedule_previous:, timeout:) ⇒ Function
Returns a new instance of Function.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/appwrite/models/function.rb', line 21 def initialize( id:, created_at:, updated_at:, execute:, name:, status:, runtime:, deployment:, vars:, events:, schedule:, schedule_next:, schedule_previous:, timeout: ) @id = id @created_at = created_at @updated_at = updated_at @execute = execute @name = name @status = status @runtime = runtime @deployment = deployment @vars = vars @events = events @schedule = schedule @schedule_next = schedule_next @schedule_previous = schedule_previous @timeout = timeout end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/function.rb', line 7 def created_at @created_at end |
#deployment ⇒ Object (readonly)
Returns the value of attribute deployment.
13 14 15 |
# File 'lib/appwrite/models/function.rb', line 13 def deployment @deployment end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
15 16 17 |
# File 'lib/appwrite/models/function.rb', line 15 def events @events end |
#execute ⇒ Object (readonly)
Returns the value of attribute execute.
9 10 11 |
# File 'lib/appwrite/models/function.rb', line 9 def execute @execute end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/function.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/appwrite/models/function.rb', line 10 def name @name end |
#runtime ⇒ Object (readonly)
Returns the value of attribute runtime.
12 13 14 |
# File 'lib/appwrite/models/function.rb', line 12 def runtime @runtime end |
#schedule ⇒ Object (readonly)
Returns the value of attribute schedule.
16 17 18 |
# File 'lib/appwrite/models/function.rb', line 16 def schedule @schedule end |
#schedule_next ⇒ Object (readonly)
Returns the value of attribute schedule_next.
17 18 19 |
# File 'lib/appwrite/models/function.rb', line 17 def schedule_next @schedule_next end |
#schedule_previous ⇒ Object (readonly)
Returns the value of attribute schedule_previous.
18 19 20 |
# File 'lib/appwrite/models/function.rb', line 18 def schedule_previous @schedule_previous end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
11 12 13 |
# File 'lib/appwrite/models/function.rb', line 11 def status @status end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
19 20 21 |
# File 'lib/appwrite/models/function.rb', line 19 def timeout @timeout end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/function.rb', line 8 def updated_at @updated_at end |
#vars ⇒ Object (readonly)
Returns the value of attribute vars.
14 15 16 |
# File 'lib/appwrite/models/function.rb', line 14 def vars @vars end |
Class Method Details
.from(map:) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/appwrite/models/function.rb', line 53 def self.from(map:) Function.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], execute: map["execute"], name: map["name"], status: map["status"], runtime: map["runtime"], deployment: map["deployment"], vars: map["vars"], events: map["events"], schedule: map["schedule"], schedule_next: map["scheduleNext"], schedule_previous: map["schedulePrevious"], timeout: map["timeout"] ) end |
Instance Method Details
#to_map ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/appwrite/models/function.rb', line 72 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "execute": @execute, "name": @name, "status": @status, "runtime": @runtime, "deployment": @deployment, "vars": @vars, "events": @events, "schedule": @schedule, "scheduleNext": @schedule_next, "schedulePrevious": @schedule_previous, "timeout": @timeout } end |