File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3
3
require 'camdram/image'
4
4
require 'camdram/news'
5
5
require 'camdram/show'
6
+ require 'camdram/diary'
6
7
7
8
module Camdram
8
9
class Organisation < Base
@@ -51,6 +52,15 @@ def shows
51
52
split_object ( response , Show )
52
53
end
53
54
55
+ # Gets a diary object which contains an array of upcoming calendar events for the organisation
56
+ #
57
+ # @return [Camdram::Diary] A Diary object.
58
+ def diary ( )
59
+ url = "#{ self . class . url } /#{ slug } /diary.json"
60
+ response = get ( url )
61
+ Diary . new ( response )
62
+ end
63
+
54
64
# Returns the URL+slug of the organisation
55
65
#
56
66
# @return [String] The full URL and slug.
Original file line number Diff line number Diff line change 2
2
require 'camdram/api'
3
3
require 'camdram/news'
4
4
require 'camdram/show'
5
+ require 'camdram/diary'
5
6
6
7
module Camdram
7
8
class Venue < Base
@@ -45,6 +46,15 @@ def shows
45
46
split_object ( response , Show )
46
47
end
47
48
49
+ # Gets a diary object which contains an array of upcoming calendar events for the venue
50
+ #
51
+ # @return [Camdram::Diary] A Diary object.
52
+ def diary ( )
53
+ url = "#{ self . class . url } /#{ slug } /diary.json"
54
+ response = get ( url )
55
+ Diary . new ( response )
56
+ end
57
+
48
58
# Returns the URL+slug of the venue
49
59
#
50
60
# @return [String] The full URL and slug.
Original file line number Diff line number Diff line change 1
1
module Camdram
2
- VERSION = '1.2.0 '
2
+ VERSION = '1.2.1 '
3
3
BASE_URL = 'https://www.camdram.net'
4
4
end
You can’t perform that action at this time.
0 commit comments