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