gnoso-remote_entity 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|