Class: BtfyClient::CreateLinkRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- BtfyClient::CreateLinkRequest
- Includes:
- APIClientBase::Request
- Defined in:
- lib/btfy_client/requests/create_link_request.rb
Instance Method Summary collapse
Methods inherited from BaseRequest
Instance Method Details
#body ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/btfy_client/requests/create_link_request.rb', line 10 def body body = { destination_url: destination_url } if name.present? body = body.merge(name: name) end if slug.present? body = body.merge(slug: slug) end body.to_json end |