Class: Karaden::Param::Message::MessageDetailParamsBuilder
- Inherits:
-
Object
- Object
- Karaden::Param::Message::MessageDetailParamsBuilder
- Defined in:
- lib/karaden/param/message/message_detail_params.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ MessageDetailParamsBuilder
constructor
A new instance of MessageDetailParamsBuilder.
- #with_id(id) ⇒ Object
Constructor Details
#initialize ⇒ MessageDetailParamsBuilder
Returns a new instance of MessageDetailParamsBuilder.
55 56 57 |
# File 'lib/karaden/param/message/message_detail_params.rb', line 55 def initialize @params = MessageDetailParams.new end |
Instance Method Details
#build ⇒ Object
64 65 66 |
# File 'lib/karaden/param/message/message_detail_params.rb', line 64 def build @params.clone end |
#with_id(id) ⇒ Object
59 60 61 62 |
# File 'lib/karaden/param/message/message_detail_params.rb', line 59 def with_id(id) @params.id = id self end |