attendance_client 0.0.1
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
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c9d35cfe00adf340aeab7eeff5893ca852492188
|
4
|
+
data.tar.gz: f222ef39de8194e4012d05abf83040cc33573568
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3ac342df38e9c8757c0a786cde4263fb7a81dca72eb95892f3cd260ad5934aa4a51bd53e5c9464c0efa38cd12e923b37206d7add397bfa6788298b0852f0035c
|
7
|
+
data.tar.gz: 41b8f2a382ef13a2fafed76238e7c2dd328ae61501bfd62a36dac82d2ec2a50097a44320d20b0afd52a0bed680fc12ceb983d5f5cd5cea50e123b106c1b5589d
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'attendance_client/service_configuration'
|
2
|
+
|
3
|
+
module AttendanceClient
|
4
|
+
class TrialLesson < LogicalModel
|
5
|
+
|
6
|
+
include AttendanceClient::ServiceConfiguration
|
7
|
+
|
8
|
+
set_resource_url HOST, '/api/v0/trial_lessons'
|
9
|
+
|
10
|
+
attribute :id
|
11
|
+
attribute :contact_id
|
12
|
+
attribute :account_name
|
13
|
+
attribute :username
|
14
|
+
attribute :time_slot_id
|
15
|
+
attribute :trial_on
|
16
|
+
attribute :assisted
|
17
|
+
attribute :confirmed
|
18
|
+
attribute :archived
|
19
|
+
attribute :absence_reason
|
20
|
+
attribute :created_at
|
21
|
+
attribute :updated_at
|
22
|
+
|
23
|
+
def json_root
|
24
|
+
'trial_lesson'
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module AttendanceClient
|
2
|
+
module ServiceConfiguration
|
3
|
+
def self.included(base)
|
4
|
+
base.send('use_hydra', HYDRA)
|
5
|
+
|
6
|
+
base.send('configure_index_response', {collection: 'collection', total: 'total'})
|
7
|
+
|
8
|
+
base.send('set_api_key','app_key',APP_KEY)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: attendance_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dwayne Macgowan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logical_model
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.5.13
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.5.13
|
41
|
+
description: Padma Attendance client with LogicalModel
|
42
|
+
email:
|
43
|
+
- dwaynemac@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- app/models/attendance_client/trial_lesson.rb
|
49
|
+
- config/initializers/attendance_client.rb
|
50
|
+
- lib/attendance_client.rb
|
51
|
+
- lib/attendance_client/railties.rb
|
52
|
+
- lib/attendance_client/service_configuration.rb
|
53
|
+
homepage: ''
|
54
|
+
licenses: []
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 2.4.6
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: Client library for PADMA's attendance-ws
|
76
|
+
test_files: []
|