extraspace 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extraspace/address.rb +3 -3
- data/lib/extraspace/availability.rb +2 -2
- data/lib/extraspace/dimensions.rb +5 -2
- data/lib/extraspace/facility.rb +1 -0
- data/lib/extraspace/price.rb +1 -1
- data/lib/extraspace/rates.rb +4 -2
- data/lib/extraspace/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c85ab034de8c329973cfe53e470745608a52076d9dce4a037532dc8214f5913
|
4
|
+
data.tar.gz: fa535b917b40c8349b79683642ce5e367b0ea34c519fbfd16c094fba87025ebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d243f120d52703c773053469004d735eb8deadd63f0706012f1b4e92abe2fc747db2010f8a99e561cce4336841b3e350ebe27376a2de1f037fce75d6da14935c
|
7
|
+
data.tar.gz: 21db75d1f583a0577bc4b62ea4465eca29e69185f668b254c5fb1ee19dc4215ebb77f2abdf3234820e06964b4bc1926255b74a36b7619017cf203ea0a68a8b89
|
data/lib/extraspace/address.rb
CHANGED
@@ -26,9 +26,8 @@ module ExtraSpace
|
|
26
26
|
# @param line1 [String]
|
27
27
|
# @param line2 [String]
|
28
28
|
# @param city [String]
|
29
|
-
# @param
|
30
|
-
# @param
|
31
|
-
# @param postal_code [String]
|
29
|
+
# @param state [String]
|
30
|
+
# @param zip [String]
|
32
31
|
def initialize(line1:, line2:, city:, state:, zip:)
|
33
32
|
@line1 = line1
|
34
33
|
@line2 = line2
|
@@ -37,6 +36,7 @@ module ExtraSpace
|
|
37
36
|
@zip = zip
|
38
37
|
end
|
39
38
|
|
39
|
+
# @return [String]
|
40
40
|
def inspect
|
41
41
|
props = [
|
42
42
|
"line1=#{@line1.inspect}",
|
@@ -7,7 +7,7 @@ module ExtraSpace
|
|
7
7
|
# @return [String]
|
8
8
|
attr_accessor :available
|
9
9
|
|
10
|
-
# @param
|
10
|
+
# @param available [String]
|
11
11
|
def initialize(available:)
|
12
12
|
@available = available
|
13
13
|
end
|
@@ -22,7 +22,7 @@ module ExtraSpace
|
|
22
22
|
|
23
23
|
# @param data [Hash]
|
24
24
|
#
|
25
|
-
# @return [
|
25
|
+
# @return [Availability]
|
26
26
|
def self.parse(data:)
|
27
27
|
new(available: data['available'])
|
28
28
|
end
|
@@ -19,7 +19,10 @@ module ExtraSpace
|
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :display
|
21
21
|
|
22
|
-
# @param
|
22
|
+
# @param depth [Integer]
|
23
|
+
# @param width [Integer]
|
24
|
+
# @param sqft [Integer]
|
25
|
+
# @param display [String]
|
23
26
|
def initialize(depth:, width:, sqft:, display:)
|
24
27
|
@depth = depth
|
25
28
|
@width = width
|
@@ -40,7 +43,7 @@ module ExtraSpace
|
|
40
43
|
|
41
44
|
# @param data [Hash]
|
42
45
|
#
|
43
|
-
# @return [
|
46
|
+
# @return [Dimensions]
|
44
47
|
def self.parse(data:)
|
45
48
|
new(depth: data['depth'], width: data['width'], sqft: data['squareFoot'], display: data['display'])
|
46
49
|
end
|
data/lib/extraspace/facility.rb
CHANGED
data/lib/extraspace/price.rb
CHANGED
data/lib/extraspace/rates.rb
CHANGED
@@ -15,7 +15,9 @@ module ExtraSpace
|
|
15
15
|
# @return [Integer]
|
16
16
|
attr_accessor :web
|
17
17
|
|
18
|
-
# @param
|
18
|
+
# @param nsc [Integer]
|
19
|
+
# @param street [Integer]
|
20
|
+
# @param web [Integer]
|
19
21
|
def initialize(nsc:, street:, web:)
|
20
22
|
@nsc = nsc
|
21
23
|
@street = street
|
@@ -34,7 +36,7 @@ module ExtraSpace
|
|
34
36
|
|
35
37
|
# @param data [Hash]
|
36
38
|
#
|
37
|
-
# @return [
|
39
|
+
# @return [Rates]
|
38
40
|
def self.parse(data:)
|
39
41
|
new(
|
40
42
|
nsc: data['nsc'],
|
data/lib/extraspace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extraspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -94,7 +94,7 @@ metadata:
|
|
94
94
|
homepage_uri: https://github.com/ksylvest/extraspace
|
95
95
|
source_code_uri: https://github.com/ksylvest/extraspace
|
96
96
|
changelog_uri: https://github.com/ksylvest/extraspace
|
97
|
-
post_install_message:
|
97
|
+
post_install_message:
|
98
98
|
rdoc_options: []
|
99
99
|
require_paths:
|
100
100
|
- lib
|
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.5.
|
113
|
-
signing_key:
|
112
|
+
rubygems_version: 3.5.23
|
113
|
+
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: A crawler for ExtraSpace.
|
116
116
|
test_files: []
|