Class: CommandTower::Messaging::Inbox::ListResult
- Inherits:
-
Data
- Object
- Data
- CommandTower::Messaging::Inbox::ListResult
- Defined in:
- app/services/command_tower/messaging/inbox/list_result.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#total_count ⇒ Object
readonly
Returns the value of attribute total_count.
Class Method Summary collapse
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/list_result.rb', line 6 def items @items end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/list_result.rb', line 6 def limit @limit end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/list_result.rb', line 6 def offset @offset end |
#total_count ⇒ Object (readonly)
Returns the value of attribute total_count
6 7 8 |
# File 'app/services/command_tower/messaging/inbox/list_result.rb', line 6 def total_count @total_count end |
Class Method Details
.build(items:, limit:, offset:, total_count:) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/services/command_tower/messaging/inbox/list_result.rb', line 7 def self.build(items:, limit:, offset:, total_count:) new( items: Array(items).freeze, limit: Integer(limit), offset: Integer(offset), total_count: Integer(total_count), ).freeze end |