messageCreator 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/messageCreator.rb +17 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e6e358fd2ad21b2d5ed28f92d3f765e3d776d0ec010aae9d2de94ee63efe6689
4
+ data.tar.gz: 35705e55cd7523abb5da1f86ff8b4246a27fbc643211664257a864cd6e43a5b8
5
+ SHA512:
6
+ metadata.gz: 8d61f6ab35297fe12c76121e570aeb9ac21f02b895deadd840827248a91ea86c34c01549e2193eb23bf64c42bbc9aa4006b0cff5fb6f36c48863a99d228c89a9
7
+ data.tar.gz: 4357874bf45bb6fe4f3966957d2d4cd3958b3610a954daf67fa2bab21a89e0d9afe59117e7cd2040d5d37b08f0d2f3a0cf71fc5e4457e1c0de701308d1443e9b
@@ -0,0 +1,17 @@
1
+ module CreateMessage
2
+ def self.create(recipientUsername, actorUsername, value, url)
3
+ if value == 1
4
+ message = "Hi #{recipientUsername}, You have a notification.... #{actorUsername} has liked your post. Please click on the url to view the post #{url}."
5
+ return message
6
+ elsif value == 2
7
+ message = "Hi #{recipientUsername}, You have a notification.... #{actorUsername} has commented on your post. Please click on the url to view the post #{url}."
8
+ return message
9
+ elsif value == 3
10
+ message = "Hi #{recipientUsername}, You have a notification.... #{actorUsername} has added you to his circle. Please click on the url to view his profile #{url}."
11
+ return message
12
+ else
13
+ message = "nil"
14
+ return message
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: messageCreator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Akhilesh Selvaraj
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-18 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Returns a message based like,comment ot follow.
14
+ email: akhiselva@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/messageCreator.rb
20
+ homepage: http://rubygems.org/gems/messageCreator
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.1.2
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: Creates a message for social media application based on the value.
42
+ test_files: []