gnoso-remote_entity 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remote_entity/entity_resource.rb +10 -0
- metadata +1 -1
@@ -48,6 +48,13 @@ module RemoteEntity
|
|
48
48
|
super
|
49
49
|
end
|
50
50
|
|
51
|
+
# Gets apis to reconnect. Really useful for testing api clients with
|
52
|
+
# fafactory.
|
53
|
+
def self.reconnect
|
54
|
+
self.update_site
|
55
|
+
@connection = nil
|
56
|
+
end
|
57
|
+
|
51
58
|
private
|
52
59
|
def self.update_site
|
53
60
|
self.site = RemoteEntity.service_uri(self.service,
|
@@ -58,7 +65,10 @@ module RemoteEntity
|
|
58
65
|
self.user = api_key
|
59
66
|
self.password = ""
|
60
67
|
end
|
68
|
+
|
69
|
+
@connection_needs_update = true
|
61
70
|
end
|
71
|
+
|
62
72
|
def self.get_schema
|
63
73
|
@schema || []
|
64
74
|
end
|