dm3-api 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: ddbc11fa40649fd9c879dfd38ad11fce8dedea6a
4
- data.tar.gz: 2b832cd84e2714197a35fae8227bde69bb079775
3
+ metadata.gz: 73c82bc8a6c8c32396d9d8419d224e12a6b5ee70
4
+ data.tar.gz: 250577a4ef45ea91b1a0188d2511fb1426cbeb41
5
5
  SHA512:
6
- metadata.gz: e35dad66ab7434fd0b35cd7937fa54b58727e8ae36b4d89216ce484ec68a8ec4fc49d824eb3bb226532ed2d10fd92522a3be23ac87d9c4fd1c2ddfe4dfde8f4f
7
- data.tar.gz: 9c8aafabc1bb24c71127d1a04818ff606f373a9613b4d3dad44012a3845d7a3b95ab6e150325c105c94279d62a4a76bb1b565946cfbb4ed813cfa8e9956029f1
6
+ metadata.gz: c63c62069e9cfbad830a4f90c9837cdc1a0b2cc68a34ff89635e56167c140482af83a42940c6aa06beed2265a0f5da1c1facf7d5b39dd1719c2a55a2119b21fb
7
+ data.tar.gz: 05b27395749b1235c2522666d3fd008b769c8352f115c94286d89b10312ad3da528fe0ba1c7add67a425f2a9967f0ed5a6d4e528d8fbd62032b0a05ab7b3209e
@@ -13,6 +13,8 @@ module Dm3
13
13
  autoload :Post, 'dm3/api/requests/post'
14
14
  autoload :Put, 'dm3/api/requests/put'
15
15
  autoload :ShowStatus, 'dm3/api/requests/show_status'
16
+ autoload :SpentTime, 'dm3/api/requests/spent_time'
17
+ autoload :KokyakuCmsPages, 'dm3/api/requests/kokyaku_cms_pages'
16
18
  autoload :UpdateBooking, 'dm3/api/requests/update_booking'
17
19
  end
18
20
  end
@@ -0,0 +1,7 @@
1
+ class Dm3::Api::Requests::SpentTime < Dm3::Api::Requests::Get
2
+ private
3
+
4
+ def path
5
+ "/api/v1/customer/spent_time?start_date=#{opts[:start_date]}&end_date=#{opts[:end_date]}"
6
+ end
7
+ end
@@ -9,6 +9,8 @@ module Dm3
9
9
  autoload :DestroyBooking, 'dm3/api/responses/destroy_booking'
10
10
  autoload :KokyakuCmsPages, 'dm3/api/responses/kokyaku_cms_pages'
11
11
  autoload :ShowStatus, 'dm3/api/responses/show_status'
12
+ autoload :SpentTime, 'dm3/api/responses/spent_time'
13
+ autoload :KokyakuCmsPages, 'dm3/api/responses/kokyaku_cms_pages'
12
14
  autoload :UpdateBooking, 'dm3/api/responses/update_booking'
13
15
  end
14
16
  end
@@ -0,0 +1,2 @@
1
+ class Dm3::Api::Responses::SpentTime < Dm3::Api::Responses::Base
2
+ end
@@ -1,5 +1,5 @@
1
1
  module Dm3
2
2
  module Api
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm3-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: DM3 Ruby API wrapper
14
14
  email:
@@ -31,6 +31,7 @@ files:
31
31
  - lib/dm3/api/requests/post.rb
32
32
  - lib/dm3/api/requests/put.rb
33
33
  - lib/dm3/api/requests/show_status.rb
34
+ - lib/dm3/api/requests/spent_time.rb
34
35
  - lib/dm3/api/requests/update_booking.rb
35
36
  - lib/dm3/api/responses.rb
36
37
  - lib/dm3/api/responses/base.rb
@@ -40,6 +41,7 @@ files:
40
41
  - lib/dm3/api/responses/destroy_booking.rb
41
42
  - lib/dm3/api/responses/kokyaku_cms_pages.rb
42
43
  - lib/dm3/api/responses/show_status.rb
44
+ - lib/dm3/api/responses/spent_time.rb
43
45
  - lib/dm3/api/responses/update_booking.rb
44
46
  - lib/dm3/api/version.rb
45
47
  homepage: https://github.com/Selleo/dm3-api