presto_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/presto_api/version.rb +1 -1
- data/lib/presto_api.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d398e4d89667403cd394bd7750bb2376673842eb
|
4
|
+
data.tar.gz: d5de7828f581707d280f191fe243665e3110e013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74d0fb76457db31f595cc71719136f933409006000851f0772da70c7e0c73e50cc04332395369a4ef2fe4ac2451f64c5484afc7f639d319ecb03102f43b25f7f
|
7
|
+
data.tar.gz: 1e6bded2c7d248b9f747fc681de8487a8253da6ea4650d3b037613be2331d53f15c5d29ea53c4294d368295f3e028b31c833ba1a2485825b9f1e078385875335
|
data/lib/presto_api/version.rb
CHANGED
data/lib/presto_api.rb
CHANGED
@@ -28,8 +28,8 @@ module PrestoAPI
|
|
28
28
|
attr_accessor :first_name,
|
29
29
|
:card_number,
|
30
30
|
:last_name,
|
31
|
-
:
|
32
|
-
:
|
31
|
+
:address1,
|
32
|
+
:address2,
|
33
33
|
:city,
|
34
34
|
:province,
|
35
35
|
:country,
|
@@ -124,8 +124,8 @@ module PrestoAPI
|
|
124
124
|
def user_from_page(page)
|
125
125
|
first_name = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelFirstNameOutput"]/text()[last()]').last
|
126
126
|
last_name = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelLastNameOutput"]/text()[last()]').last
|
127
|
-
|
128
|
-
|
127
|
+
address1 = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress1Output"]/text()[last()]').last
|
128
|
+
address2 = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelStreetAddress2Output"]/text()[last()]').last
|
129
129
|
city = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelCityOutput"]/text()[last()]').last
|
130
130
|
province = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelProvinceOutput"]/text()[last()]').last
|
131
131
|
country = page.parser.xpath('//span[@id="ctl00_SPWebPartManager1_updateRegistrationWebPart_ctl00_WizardViewUpdateProfile_labelCountryOutput"]/text()[last()]').last
|
@@ -143,8 +143,8 @@ module PrestoAPI
|
|
143
143
|
user = User.new
|
144
144
|
user.first_name = first_name.content || ''
|
145
145
|
user.last_name = last_name.content || ''
|
146
|
-
user.
|
147
|
-
user.
|
146
|
+
user.address1 = address1.content || ''
|
147
|
+
user.address2 = address2.content || ''
|
148
148
|
user.city = city.content || ''
|
149
149
|
user.province = province.content || ''
|
150
150
|
user.country = country.content || ''
|