Class: Hook0::Generated::ApplicationInfoOnboardingSteps
- Inherits:
-
Object
- Object
- Hook0::Generated::ApplicationInfoOnboardingSteps
- Defined in:
- lib/hook0/generated/models.rb
Overview
The ApplicationInfoOnboardingSteps the API declares.
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#subscription ⇒ Object
readonly
Returns the value of attribute subscription.
Class Method Summary collapse
-
.from_json(value) ⇒ ApplicationInfoOnboardingSteps
Read one out of what the API answered.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
(also: #eql?)
Whether that value carries the same members as this one.
-
#hash ⇒ Integer
A value two equal instances share, so that either may key a hash.
-
#initialize(event:, event_type:, subscription:) ⇒ ApplicationInfoOnboardingSteps
constructor
A new instance of ApplicationInfoOnboardingSteps.
-
#to_h ⇒ Hash{String => Object}
Write one back the way the API reads it.
Constructor Details
#initialize(event:, event_type:, subscription:) ⇒ ApplicationInfoOnboardingSteps
Returns a new instance of ApplicationInfoOnboardingSteps.
448 449 450 451 452 453 |
# File 'lib/hook0/generated/models.rb', line 448 def initialize(event:, event_type:, subscription:) @event = event @event_type = event_type @subscription = subscription freeze end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
440 441 442 |
# File 'lib/hook0/generated/models.rb', line 440 def event @event end |
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
440 441 442 |
# File 'lib/hook0/generated/models.rb', line 440 def event_type @event_type end |
#subscription ⇒ Object (readonly)
Returns the value of attribute subscription.
440 441 442 |
# File 'lib/hook0/generated/models.rb', line 440 def subscription @subscription end |
Class Method Details
.from_json(value) ⇒ ApplicationInfoOnboardingSteps
Read one out of what the API answered.
459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/hook0/generated/models.rb', line 459 def self.from_json(value) fields = Runtime.as_fields(value, "ApplicationInfoOnboardingSteps") new( event: Runtime.read(fields, "event", Runtime.member_of(ApplicationInfoOnboardingStepsEvent)), event_type: Runtime.read(fields, "event_type", Runtime.member_of(ApplicationInfoOnboardingStepsEventType)), subscription: Runtime.read( fields, "subscription", Runtime.member_of(ApplicationInfoOnboardingStepsSubscription) ) ) end |
Instance Method Details
#==(other) ⇒ Boolean Also known as: eql?
Whether that value carries the same members as this one.
487 488 489 |
# File 'lib/hook0/generated/models.rb', line 487 def ==(other) other.is_a?(ApplicationInfoOnboardingSteps) && to_h == other.to_h end |
#hash ⇒ Integer
A value two equal instances share, so that either may key a hash.
495 496 497 |
# File 'lib/hook0/generated/models.rb', line 495 def hash to_h.hash end |
#to_h ⇒ Hash{String => Object}
Write one back the way the API reads it.
475 476 477 478 479 480 481 |
# File 'lib/hook0/generated/models.rb', line 475 def to_h out = {} out["event"] = @event out["event_type"] = @event_type out["subscription"] = @subscription out end |