cubesmart 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1781d8409650e418c66768205aaa73dd3b95d10c22cfdb58996c4b7d0f813c5
4
- data.tar.gz: 4c9cc3f1d3f3ff55cac8fa8442faea727f3ac885f3224f33e225de9b802ec246
3
+ metadata.gz: 3e26402813c2f507a7a4902766a26821194de2f1c9c2d31ef633b2138c45e2f5
4
+ data.tar.gz: 91628c2ca652fc5be1788d4616652b82483863ab3b0bc3107cf7f3b9861cac51
5
5
  SHA512:
6
- metadata.gz: b5d64f586345d591466b8b50dacf95baf86c71bbbf2d02f967b88e5768c48e528b5602f2617e10b9f62006d62c4bdcd8ea7f8c485d30b5b0cac85390406f77d4
7
- data.tar.gz: 04356e1ca5ae5fb07435d39e7eb44837146f0b3f2f2b13d373aaf3caeb327f15104b99a6467098c29f622da3e891c54764c67fa05616b271dcd2ecbce433e592
6
+ metadata.gz: e1f88ebc04f150dc9cbf0d590e01f05245be3a3a323d31526b6f5cdd6f445b38ad66c2cf7a0f77847ba20c62c364b58a1fd9db1bb87ee2fd8d610f0fc30f53cc
7
+ data.tar.gz: 04f620cbfe554d8ecaeb77e363ad7a31c506a954c86deec4f6ad597af182c39c42340667f202fe9a7880740d4c4525c657368813d8a9bd6d6751aea8398db3ca
@@ -7,6 +7,9 @@ module CubeSmart
7
7
  class Facility
8
8
  class ParseError < StandardError; end
9
9
 
10
+ DEFAULT_EMAIL = 'webleads@cubesmart.com'
11
+ DEFAULT_PHONE = '1-877-279-7585'
12
+
10
13
  SITEMAP_URL = 'https://www.cubesmart.com/sitemap-facility.xml'
11
14
 
12
15
  PRICE_SELECTOR = %w[small medium large].map do |group|
@@ -23,6 +26,14 @@ module CubeSmart
23
26
  # @return [String]
24
27
  attr_accessor :name
25
28
 
29
+ # @attribute [rw] phone
30
+ # @return [String]
31
+ attr_accessor :phone
32
+
33
+ # @attribute [rw] email
34
+ # @return [String]
35
+ attr_accessor :email
36
+
26
37
  # @attribute [rw] address
27
38
  # @return [Address]
28
39
  attr_accessor :address
@@ -77,12 +88,16 @@ module CubeSmart
77
88
  # @param name [String]
78
89
  # @param address [Address]
79
90
  # @param geocode [Geocode]
91
+ # @param phone [String]
92
+ # @param email [String]
80
93
  # @param prices [Array<Price>]
81
- def initialize(id:, name:, address:, geocode:, prices:)
94
+ def initialize(id:, name:, address:, geocode:, phone: DEFAULT_PHONE, email: DEFAULT_EMAIL, prices: [])
82
95
  @id = id
83
96
  @name = name
84
97
  @address = address
85
98
  @geocode = geocode
99
+ @phone = phone
100
+ @email = email
86
101
  @prices = prices
87
102
  end
88
103
 
@@ -92,6 +107,8 @@ module CubeSmart
92
107
  "id=#{@id.inspect}",
93
108
  "address=#{@address.inspect}",
94
109
  "geocode=#{@geocode.inspect}",
110
+ "phone=#{@phone.inspect}",
111
+ "email=#{@email.inspect}",
95
112
  "prices=#{@prices.inspect}"
96
113
  ]
97
114
  "#<#{self.class.name} #{props.join(' ')}>"
@@ -99,7 +116,7 @@ module CubeSmart
99
116
 
100
117
  # @return [String]
101
118
  def text
102
- "#{@id} | #{@name} | #{@address.text} | #{@geocode.text}"
119
+ "#{@id} | #{@name} | #{@phone} | #{@email} | #{@address.text} | #{@geocode.text}"
103
120
  end
104
121
  end
105
122
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CubeSmart
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cubesmart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-03 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http