Class: Karaden::Param::Message::MessageCreateParamsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/karaden/param/message/message_create_params.rb

Instance Method Summary collapse

Constructor Details

#initializeMessageCreateParamsBuilder

Returns a new instance of MessageCreateParamsBuilder.



107
108
109
# File 'lib/karaden/param/message/message_create_params.rb', line 107

def initialize
  @params = MessageCreateParams.new
end

Instance Method Details

#buildObject



146
147
148
# File 'lib/karaden/param/message/message_create_params.rb', line 146

def build
  @params.clone
end

#with_body(body) ⇒ Object



121
122
123
124
# File 'lib/karaden/param/message/message_create_params.rb', line 121

def with_body(body)
  @params.body = body
  self
end

#with_is_shorten(is_shorten) ⇒ Object



131
132
133
134
# File 'lib/karaden/param/message/message_create_params.rb', line 131

def with_is_shorten(is_shorten)
  @params.is_shorten = is_shorten
  self
end

#with_limited_at(limited_at) ⇒ Object



141
142
143
144
# File 'lib/karaden/param/message/message_create_params.rb', line 141

def with_limited_at(limited_at)
  @params.limited_at = limited_at
  self
end

#with_scheduled_at(scheduled_at) ⇒ Object



136
137
138
139
# File 'lib/karaden/param/message/message_create_params.rb', line 136

def with_scheduled_at(scheduled_at)
  @params.scheduled_at = scheduled_at
  self
end

#with_service_id(service_id) ⇒ Object



111
112
113
114
# File 'lib/karaden/param/message/message_create_params.rb', line 111

def with_service_id(service_id)
  @params.service_id = service_id
  self
end

#with_tags(tags) ⇒ Object



126
127
128
129
# File 'lib/karaden/param/message/message_create_params.rb', line 126

def with_tags(tags)
  @params.tags = tags
  self
end

#with_to(to) ⇒ Object



116
117
118
119
# File 'lib/karaden/param/message/message_create_params.rb', line 116

def with_to(to)
  @params.to = to
  self
end