dropdownSelection 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.
- checksums.yaml +7 -0
- data/lib/dropdownSelection.rb +21 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e5643aa8bbe71611cdc0c826e5bfbe9e7097ce56
|
4
|
+
data.tar.gz: 2c0b8a9bfb4e080bab6510841d3d38d79d6d38f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 382a466823149236fcf8514c8077001b291ed7fc6d2d614e071c2aebf07c9173daf6b3f387037de37f4e60eacf1de79758369b4950b71a0572595e499128bcd4
|
7
|
+
data.tar.gz: 3c99b6b58918daaceb929cff18b39a119dc6dec2e0e2f5c4b403cd8b2473bf03579d886a93f06e0302029a89edd7d5fa9e399c43b4439ac8314ebcf2021d67d6
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class DropdownSelection
|
2
|
+
|
3
|
+
def self.getDropdownValues(city)
|
4
|
+
puts "product_city:"+city.to_s
|
5
|
+
dublinZip = ["Dublin 1", "Dublin 2", "Dublin 3", "Dublin 4", "Dublin 5"]
|
6
|
+
corkZip = ["Cork 1", "Cork 2", "Cork 3", "Cork 4", "Cork 5"]
|
7
|
+
galwayZip = ["Galway 1", "Galway 2", "Galway 3", "Galway 4", "Galway 5"]
|
8
|
+
limerickZip = ["Limerick 1", "Limerick 2", "Limerick 3", "Limerick 4", "Limerick 5"]
|
9
|
+
if city == "Dublin"
|
10
|
+
return dublinZip
|
11
|
+
elsif city == "Cork"
|
12
|
+
return corkZip
|
13
|
+
elsif city == "Galway"
|
14
|
+
return galwayZip
|
15
|
+
elsif city == "Limerick"
|
16
|
+
return limerickZip
|
17
|
+
else
|
18
|
+
puts "Wrong choice"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dropdownSelection
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- X17156882
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This fills dropdown of zipcode
|
14
|
+
email: X17156882@student.ncirl.ie
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/dropdownSelection.rb
|
20
|
+
homepage: http://rubygems.org/gems/dropdownSelection
|
21
|
+
licenses:
|
22
|
+
- Nonstandard
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.6.8
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: This fills dropdown of zipcode
|
44
|
+
test_files: []
|