Module: Camdram::API
- Included in:
- Client, Diary, Event, Image, News, Organisation, Performance, Person, Search, Show, User, Venue
- Defined in:
- lib/camdram/api.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
Returns the value of attribute http.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Object
Instantiate a new object.
-
#update! ⇒ Object
Update the object.
Instance Attribute Details
#http ⇒ Object
Returns the value of attribute http.
6 7 8 |
# File 'lib/camdram/api.rb', line 6 def http @http end |
Instance Method Details
#initialize(options = {}) ⇒ Object
Instantiate a new object
12 13 14 |
# File 'lib/camdram/api.rb', line 12 def initialize( = {}) super() end |
#update! ⇒ Object
Note:
The object this method is called on is updated 'in place'.
Update the object
20 21 22 23 24 |
# File 'lib/camdram/api.rb', line 20 def update! json = get(self.url_slug) self.send(:initialize, json) return self end |