messagepassing 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/messagepassing.rb +17 -0
  3. metadata +42 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e2f77a85705a6e06b23c5aaba7f9dce3350062c912fde67ccca51da31f4c11a
4
+ data.tar.gz: 6f6a60137fccc82a88bc93acef4ff7a54696b93112bf5d00fa5f1d632642ce94
5
+ SHA512:
6
+ metadata.gz: 60f3f741c94473ec5ac346faffaf4925578c6ab6fc433d3736a9cfd7f7e02744c047c11358d55a1730d299c0b378208f1d77c31a115028823cd92c920ed1e5ec
7
+ data.tar.gz: 6454fedc26ffb7ec8353b36be9c009b05ae325e51acff8b2c1e872f6676be80eb3bdd4785c8aed1146b0f772024c62bc98d1e9080bc1afd04765a65923826ec4
@@ -0,0 +1,17 @@
1
+ module MessageWriter
2
+ def self.write(name,title,model,brand,condition,finish,price,value)
3
+ if value == 1
4
+ message = "Hi #{name}, #{title}, was added to the site. This #{model}, was purely #{brand}, and #{condition} with #{finish}, finally price is #{price}. please review "
5
+ return message
6
+ elsif value == 2
7
+ message = "Hi #{name}, #{title}, was updated in the site. This #{model}, was purely #{brand}, and #{condition} with #{finish}, finally price is #{price}. please review "
8
+ return message
9
+ elsif value == 3
10
+ message = "Hi #{name}, #{title}, was deleted from your site. This #{model}, was purely #{brand}, and #{condition} with #{finish}, finally price is #{price}. please review "
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: messagepassing
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Arunkumar Pandimani
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Returns a message on user continue with Add to cart.
14
+ email: arunjan30@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/messagepassing.rb
20
+ homepage: http://rubygems.org/gems/messagepassing
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: messagepassing gem.
42
+ test_files: []