Class: Mailkube::PageSteps
- Inherits:
-
Object
- Object
- Mailkube::PageSteps
- Defined in:
- lib/mailkube/types/scheduled_emails.rb,
sig/mailkube/types/scheduled_emails.rbs
Overview
Links to the pages adjacent to the one in hand.
The server omits a step at either end of the range rather than sending null, so an absent link and a nil value mean the same thing: there is no such page.
Instance Attribute Summary collapse
-
#previous ⇒ String?
readonly
Returns the value of attribute previous.
Class Method Summary collapse
-
.from(payload) ⇒ PageSteps
The model.
Instance Method Summary collapse
-
#initialize(next: nil, previous: nil) ⇒ PageSteps
constructor
A new instance of PageSteps.
-
#next ⇒ String?
Declared as
defrather thanattr_readeronly becausenextis a Ruby keyword: RBS's own core signatures spell this memberdef next:and use no keyword-namedattr_readeranywhere.
Constructor Details
#initialize(next: nil, previous: nil) ⇒ PageSteps
Returns a new instance of PageSteps.
51 |
# File 'lib/mailkube/types/scheduled_emails.rb', line 51 def initialize(next: nil, previous: nil) = super |
Instance Attribute Details
#previous ⇒ String? (readonly)
Returns the value of attribute previous.
30 31 32 |
# File 'sig/mailkube/types/scheduled_emails.rbs', line 30 def previous @previous end |
Class Method Details
.from(payload) ⇒ PageSteps
Returns the model.
55 |
# File 'lib/mailkube/types/scheduled_emails.rb', line 55 def self.from(payload) = new(next: (payload || {})["next"], previous: (payload || {})["previous"]) |
Instance Method Details
#next ⇒ String?
Declared as def rather than attr_reader only because next is a Ruby keyword: RBS's own
core signatures spell this member def next: and use no keyword-named attr_reader
anywhere. previous keeps the house form. Both are Data.define readers, and
MethodDefinitionMissing is off in the Steepfile for exactly that reason.
29 |
# File 'sig/mailkube/types/scheduled_emails.rbs', line 29
def next: () -> String?
|