qismo 0.18.2 → 0.18.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qismo/api.rb +5 -0
- data/lib/qismo/objects/admin_profile.rb +37 -0
- data/lib/qismo/version.rb +1 -1
- data/lib/qismo.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 745aafb7cada257951b74afc2672a6614b2d672737e3719bd8c973b3669507ac
|
4
|
+
data.tar.gz: 9dd6795f224d03ddab0ab443e60897bb6ecf723a7bc02766ed914beef7cd5ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52bfc30dfb7eb45a9a8fea5ffe5c6dff67e9b568165725b3a8b3684b18b5804e5d17397d7153ae07bc889520b2c48485fb429149ddff290e02436e395e38762a
|
7
|
+
data.tar.gz: a89160c07e9ff1100a387315f98267a41fc92cbe763f526553e3398e92a387c51fedb12587e31f8937da65c75596732a1f9e3772f2e12b1f73c981007723dfa1
|
data/lib/qismo/api.rb
CHANGED
@@ -6,6 +6,11 @@ module Qismo
|
|
6
6
|
module Api
|
7
7
|
# @!parse include Qismo::Client
|
8
8
|
|
9
|
+
def get_profile
|
10
|
+
body = get("/api/v1/admin/get_profile")
|
11
|
+
Qismo::Objects::AdminProfile.new(body.data)
|
12
|
+
end
|
13
|
+
|
9
14
|
# List customer rooms
|
10
15
|
#
|
11
16
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#704a0c40-56b2-4a94-9c1d-e1529923cbb6
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Qismo
|
2
|
+
module Objects
|
3
|
+
class AdminProfile < Qismo::Object
|
4
|
+
# @!attribute [r] name
|
5
|
+
# @return [String]
|
6
|
+
attribute? :name, Types::String.optional
|
7
|
+
|
8
|
+
# @!attribute [r] avatar_url
|
9
|
+
# @return [String]
|
10
|
+
attribute? :avatar_url, Types::String.optional
|
11
|
+
|
12
|
+
# @!attribute [r] company_name
|
13
|
+
# @return [String]
|
14
|
+
attribute? :company_name, Types::String.optional
|
15
|
+
|
16
|
+
# @!attribute [r] address
|
17
|
+
# @return [String]
|
18
|
+
attribute? :address, Types::String.optional
|
19
|
+
|
20
|
+
# @!attribute [r] phone_number
|
21
|
+
# @return [String]
|
22
|
+
attribute? :phone_number, Types::String.optional
|
23
|
+
|
24
|
+
# @!attribute [r] industry
|
25
|
+
# @return [String]
|
26
|
+
attribute? :industry, Types::String.optional
|
27
|
+
|
28
|
+
# @!attribute [r] email_address
|
29
|
+
# @return [String]
|
30
|
+
attribute? :email_address, Types::String.optional
|
31
|
+
|
32
|
+
# @!attribute [r] type
|
33
|
+
# @return [Integer]
|
34
|
+
attribute? :type, Types::Int.optional
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/lib/qismo/version.rb
CHANGED
data/lib/qismo.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qismo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qiscus Integration
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/qismo/error.rb
|
70
70
|
- lib/qismo/object.rb
|
71
71
|
- lib/qismo/objectified_hash.rb
|
72
|
+
- lib/qismo/objects/admin_profile.rb
|
72
73
|
- lib/qismo/objects/agent_service.rb
|
73
74
|
- lib/qismo/objects/broadcast_job.rb
|
74
75
|
- lib/qismo/objects/broadcast_log.rb
|
@@ -106,7 +107,7 @@ homepage: https://bitbucket.org/qiscus/qismo-rb
|
|
106
107
|
licenses:
|
107
108
|
- MIT
|
108
109
|
metadata:
|
109
|
-
source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.18.
|
110
|
+
source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.18.3
|
110
111
|
documentation_uri: https://www.rubydoc.info/gems/qismo
|
111
112
|
homepage_uri: https://bitbucket.org/qiscus/qismo-rb
|
112
113
|
rubygems_mfa_required: 'true'
|