Aga-message

Aga-message is a Ruby gem that provides a convenient way to format messages to be sent to customers. It offers a set of utilities and methods to compose and customize messages before sending them to clients through various communication channels.

Features

  • Format personalized messages with dynamic content for individual customers.
  • Customize message layout, styling, and formatting.
  • Localization and internationalization support for multilingual messaging.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add aga-message

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install aga-message

Usage

To use Aga-message in your application, require the gem and start making requests. Here's a basic example:

require 'message'

Message.configuration

# Output: result

[
   {
      :name=>"Bitcoin",                      
      :symbol=>"BTC",                        
      :exchanges=> [
            {:exchange=>"Exchange 1", :pair=>"BTC/USDT"},
            {:exchange=>"Exchange 2", :pair=>"BTC/USDT"}
      ],
      :slug=>"bitcoin"
   },                     
   {
      :name=>"Ethereum",                     
      :symbol=>"ETH",                        
      :exchanges=> [
         {:exchange=>"Exchange 1", :pair=>"ETH/USDT"},
         {:exchange=>"Exchange 2", :pair=>"ETH/USDT"}
      ],
      :slug=>"ethereum"
   },                    
   {
      :name=>"XRP",                          
      :symbol=>"XRP",
      :exchanges=> [
         {:exchange=>"Exchange 1", :pair=>"XRP/USDT"},
         {:exchange=>"Exchange 2", :pair=>"XRP/USDT"}
      ],
      :slug=>"xrp"
   }
]

response = Message::Helpers::Dissipator.new(result: result, service: :new, count: 2).run

# Output: response

{
   :result => [
      "šŸ¤‘<b>MOVEMENT 3/06</b> šŸ¤‘\n\nCrypto: <b>Bitcoin (BTC)</b>\nšŸ”: <b>Exchanges: </b>\nExchange 1 - BTC/USDT\nExchange 2 - BTC/USDT\n ========================== \n

      šŸ¤‘<b>MOVEMENT 4/06</b> šŸ¤‘\n\nCrypto: <b>Ethereum (ETH)</b>\nšŸ”: <b>Exchanges: </b>\nExchange 1 - ETH/USDT\nExchange 2 - ETH/USDT\n  ========================== \n

      šŸ¤‘<b>MOVEMENT 5/06</b> šŸ¤‘\n\nCrypto: <b>Xrp (XRP)</b>\nšŸ”: <b>Exchanges: </b>\nExchange 1 - XRP/USDT\nExchange 2 - XRP/USDT"
   ],
   :count => 5
}

This output is to be considered without spaces

Contributing

Contributions to Aga-message are welcome! If you encounter any issues or have suggestions for improvements, please submit an issue on the repository. Pull requests are also encouraged.

Private License

Version 0.0.2, 01/06/2023

By obtaining a copy of this software and associated documentation files (the "Software"), you agree that the Software is proprietary to AIGreenAnt and is protected under intellectual property laws. This license grants you limited rights to use the Software solely for internal purposes within your organization.

  1. License Grant

1.1 You are granted a non-exclusive, non-transferable license to use the Software for internal purposes only.

1.2 You may not distribute, sublicense, sell, or transfer the Software to any third party without prior written permission from AIGreenAnt.

  1. Intellectual Property

2.1 The Software and any associated intellectual property rights, including but not limited to copyrights, patents, trademarks, trade secrets, and any other proprietary rights, are and shall remain the exclusive property of AIGreenAnt.

2.2 You may not remove, alter, or obscure any proprietary notices or labels on the Software.

  1. Limitation of Liability

3.1 In no event shall AIGreenAnt be liable for any direct, indirect, incidental, special, or consequential damages arising out of the use or inability to use the Software, even if AIGreenAnt has been advised of the possibility of such damages.

  1. Termination

4.1 This license is effective until terminated. AIGreenAnt may terminate this license at any time if you fail to comply with the terms and conditions of this agreement.

4.2 Upon termination, you must immediately cease all use of the Software and destroy all copies in your possession or control.

  1. Governing Law

5.1 This license shall be governed by and construed in accordance with the laws of Italy, without regard to its conflict of laws principles.