bs2_api 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +3 -3
- data/lib/bs2_api/entities/customer.rb +14 -0
- data/lib/bs2_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1121a339962d5ccf01e2e82d2cac9c26326b0cb5f07bb58af18cd2aaf8502009
|
4
|
+
data.tar.gz: 5ca659be8a6422c8c620b4304769822bd78d64835a6ed6f8e2b4612f0e3cea07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba02bb1b9d40ea4e78d087a4cf3e89fa698adce23b1c7d50eedc4fe05808a548f7cbcb15ea98a321515b0b7faeabaf10cdccb5a80b35295cc9926758c3b26a8
|
7
|
+
data.tar.gz: 864734c20782307fe3d2ba4cb86dd78ee1de72f84681a3019b9a6c48b504eae9aef08aecbb66541515b80791d9abcbb39a594d0aefb6427d5c71cdd5916376bd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bs2_api (1.0.
|
4
|
+
bs2_api (1.0.2)
|
5
5
|
activesupport
|
6
6
|
builder
|
7
7
|
bundler
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
method_source (1.0.0)
|
39
39
|
mime-types (3.3.1)
|
40
40
|
mime-types-data (~> 3.2015)
|
41
|
-
mime-types-data (3.2021.
|
41
|
+
mime-types-data (3.2021.0704)
|
42
42
|
minitest (5.14.4)
|
43
43
|
multi_xml (0.6.0)
|
44
44
|
pry (0.13.1)
|
@@ -48,7 +48,7 @@ GEM
|
|
48
48
|
byebug (~> 11.0)
|
49
49
|
pry (~> 0.13.0)
|
50
50
|
public_suffix (4.0.6)
|
51
|
-
rake (13.0.
|
51
|
+
rake (13.0.4)
|
52
52
|
rexml (3.2.5)
|
53
53
|
rspec (3.10.0)
|
54
54
|
rspec-core (~> 3.10.0)
|
@@ -46,6 +46,20 @@ module Bs2Api
|
|
46
46
|
def business?
|
47
47
|
@type == TYPES[:business]
|
48
48
|
end
|
49
|
+
|
50
|
+
def first_name
|
51
|
+
split_name.first
|
52
|
+
end
|
53
|
+
|
54
|
+
def last_name
|
55
|
+
return '' if split_name.size <= 1
|
56
|
+
split_name.last
|
57
|
+
end
|
58
|
+
|
59
|
+
private
|
60
|
+
def split_name
|
61
|
+
@split_name ||= @name.split(' ')
|
62
|
+
end
|
49
63
|
end
|
50
64
|
end
|
51
65
|
end
|
data/lib/bs2_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bs2_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kim Pastro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|