Class: TheCity::UserCount
Instance Attribute Summary
Attributes inherited from ApiObject
#error_messages, #marked_for_destruction
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(options = {}) ⇒ UserCount
constructor
Constructor.
- #save ⇒ Object
Methods inherited from ApiObject
__tc_attributes, #initialize_from_json_object, #is_deleted?, #set_attributes, tc_attr_accessor, #to_attributes
Constructor Details
#initialize(options = {}) ⇒ UserCount
22 23 24 25 26 27 |
# File 'lib/api/user_count.rb', line 22 def initialize( = {}) reader = [:reader] || TheCity::UserCountReader.new() @json_data = reader.load_feed self.count = @json_data['count'] self.filter = @json_data['filter'] end |
Instance Method Details
#delete ⇒ Object
33 34 35 |
# File 'lib/api/user_count.rb', line 33 def delete raise 'User count does not have a delete method' end |
#save ⇒ Object
29 30 31 |
# File 'lib/api/user_count.rb', line 29 def save raise 'User count does not have a save method' end |