Class: Karaden::Param::Message::Bulk::BulkMessageListMessageParams
- Inherits:
-
BulkMessageParams
- Object
- BulkMessageParams
- Karaden::Param::Message::Bulk::BulkMessageListMessageParams
- Defined in:
- lib/karaden/param/message/bulk/bulk_message_list_message_params.rb
Constant Summary
Constants inherited from BulkMessageParams
Karaden::Param::Message::Bulk::BulkMessageParams::CONTEXT_PATH
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BulkMessageListMessageParams
constructor
A new instance of BulkMessageListMessageParams.
- #to_path ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize ⇒ BulkMessageListMessageParams
Returns a new instance of BulkMessageListMessageParams.
8 9 10 11 |
# File 'lib/karaden/param/message/bulk/bulk_message_list_message_params.rb', line 8 def initialize() @id = nil super end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/karaden/param/message/bulk/bulk_message_list_message_params.rb', line 6 def id @id end |
Class Method Details
.new_builder ⇒ Object
39 40 41 |
# File 'lib/karaden/param/message/bulk/bulk_message_list_message_params.rb', line 39 def self.new_builder BulkMessageListMessageParamsBuilder.new end |
Instance Method Details
#to_path ⇒ Object
13 14 15 |
# File 'lib/karaden/param/message/bulk/bulk_message_list_message_params.rb', line 13 def to_path "#{CONTEXT_PATH}/#{@id}/messages" end |
#validate ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/karaden/param/message/bulk/bulk_message_list_message_params.rb', line 17 def validate errors = Karaden::Model::KaradenObject.new has_error = false = validate_id unless .empty? errors.set_property('id', ) has_error = true end if has_error e = Karaden::Exception::InvalidParamsException.new error = Karaden::Model::Error.new error.set_property('object', Karaden::Model::Error::OBJECT_NAME) error.set_property('errors', errors) e.error = error raise e end self end |