Class: OSCRuby::ServiceClass
Class Method Summary
collapse
Instance Method Summary
collapse
create, destroy, instantiate_multiple_objects, new_from_fetch, update
attr_hash_exists_and_is_type_of, check_attributes, check_attributes_request, check_client, check_for_id, check_for_names, check_for_parents, check_interfaces, check_object_for_id, check_query, extract_attributes
check_obj_for_errors, create, destroy, normalize, update
Class Method Details
.all(client, return_json = false) ⇒ Object
37
38
39
40
41
|
# File 'lib/osc_ruby/service_class.rb', line 37
def self.all(client, return_json = false)
ClassFactoryModule.all(client,url,return_json,self)
end
|
.find(client, id = nil, return_json = false) ⇒ Object
30
31
32
33
34
|
# File 'lib/osc_ruby/service_class.rb', line 30
def self.find(client,id = nil,return_json = false)
ClassFactoryModule.find(client,id,url,return_json,self)
end
|
.url ⇒ Object
17
18
19
20
21
|
# File 'lib/osc_ruby/service_class.rb', line 17
def self.url
self.to_s.split('::')[1].camel_case_lower
end
|
.where(client, query = '', return_json = false) ⇒ Object
44
45
46
47
48
|
# File 'lib/osc_ruby/service_class.rb', line 44
def self.where(client, query = '', return_json = false)
ClassFactoryModule.where(client,query,url,return_json,self)
end
|
Instance Method Details
#create(client, return_json = false) ⇒ Object
23
24
25
26
27
|
# File 'lib/osc_ruby/service_class.rb', line 23
def create(client,return_json = false)
ClassFactoryModule.create(client,self,self.class.url,return_json)
end
|
#destroy(client, return_json = false) ⇒ Object
58
59
60
61
62
|
# File 'lib/osc_ruby/service_class.rb', line 58
def destroy(client, return_json = false)
ClassFactoryModule.destroy(client,self,self.class.url,return_json)
end
|
#update(client, return_json = false) ⇒ Object
51
52
53
54
55
|
# File 'lib/osc_ruby/service_class.rb', line 51
def update(client, return_json = false)
ClassFactoryModule::update(client,self,self.class.url,return_json)
end
|