@@ -5,7 +5,7 @@ class << self
55 end
66
77 def client
8- @@client || self . class . client
8+ @@client
99 end
1010
1111 def client = ( client )
@@ -21,44 +21,44 @@ def client=(client)
2121 end
2222 end
2323
24- def self . read ( id , client = self . client )
24+ def self . read ( id , client = @@ client)
2525 handle_response client . read ( self , id )
2626 end
2727
28- def self . read_with_summary ( id , summary , client = self . client )
28+ def self . read_with_summary ( id , summary , client = @@ client)
2929 handle_response client . read ( self , id , client . default_format , summary )
3030 end
3131
32- def self . vread ( id , version_id , client = self . client )
32+ def self . vread ( id , version_id , client = @@ client)
3333 handle_response client . vread ( self , id , version_id )
3434 end
3535
36- def self . resource_history ( client = self . client )
36+ def self . resource_history ( client = @@ client)
3737 handle_response client . resource_history ( self )
3838 end
3939
40- def self . resource_history_as_of ( last_update )
40+ def self . resource_history_as_of ( last_update , client = @@client )
4141 handle_response client . resource_history_as_of ( self , last_update )
4242 end
4343
44- def self . resource_instance_history ( id , client = self . client )
44+ def self . resource_instance_history ( id , client = @@ client)
4545 handle_response client . resource_instance_history ( self , id )
4646 end
4747
48- def self . resource_instance_history_as_of ( id , last_update , client = self . client )
48+ def self . resource_instance_history_as_of ( id , last_update , client = @@ client)
4949 handle_response client . resource_instance_history_as_of ( self , id , last_update )
5050 end
5151
52- def self . search ( params = { } , client = self . client )
52+ def self . search ( params = { } , client = @@ client)
5353 handle_response client . search ( self , search : { parameters : params } )
5454 end
5555
56- def self . create ( model , client = self . client )
56+ def self . create ( model , client = @@ client)
5757 model = new ( model ) unless model . is_a? ( self )
5858 handle_response client . create ( model )
5959 end
6060
61- def self . conditional_create ( model , params , client = self . client )
61+ def self . conditional_create ( model , params , client = @@ client)
6262 model = new ( model ) unless model . is_a? ( self )
6363 handle_response client . conditional_create ( model , params )
6464 end
0 commit comments