kalibro_gem 0.0.1.rc12 → 0.0.1.rc13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kalibro_gem/entities/model.rb +4 -3
- data/lib/kalibro_gem/version.rb +1 -1
- data/spec/entities/model_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd8b60835b7edaa3b4e962a9231e6a66099de7b7
|
4
|
+
data.tar.gz: e7cb4e3dd41a4c456cf8f06e062e7b52958a2726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ceb5256578e7d651d9ba8b31528c606885a9102a2fe04c84583bef6996de11b63b0affe828b994dcc6e03966ddc71e9d30a4e7033305954333797a2fdb6c5e6
|
7
|
+
data.tar.gz: c7308b5f8de49e0b3a9ea193abd4622ceca31b098018e0fee760d029d6ae862e99acdddb170dc309e3d4046b61e010c50f5ea76b9323a11a93d4da216f25ad8d
|
@@ -119,6 +119,10 @@ module KalibroGem
|
|
119
119
|
class_name
|
120
120
|
end
|
121
121
|
|
122
|
+
def instance_class_name
|
123
|
+
self.class.name.gsub(/KalibroGem::Entities::/,"")
|
124
|
+
end
|
125
|
+
|
122
126
|
protected
|
123
127
|
|
124
128
|
def instance_variable_names
|
@@ -141,9 +145,6 @@ module KalibroGem
|
|
141
145
|
field.to_s[0] != '@' and field != :attributes! and (field.to_s =~ /xsi/).nil?
|
142
146
|
end
|
143
147
|
|
144
|
-
def instance_class_name
|
145
|
-
self.class.name.gsub(/KalibroGem::Entities::/,"")
|
146
|
-
end
|
147
148
|
|
148
149
|
include RequestMethods
|
149
150
|
extend RequestMethods::ClassMethods
|
data/lib/kalibro_gem/version.rb
CHANGED
data/spec/entities/model_spec.rb
CHANGED
@@ -278,4 +278,10 @@ describe KalibroGem::Entities::Model do
|
|
278
278
|
KalibroGem::Entities::Model.endpoint.should eq("Model")
|
279
279
|
end
|
280
280
|
end
|
281
|
+
|
282
|
+
describe 'instance_class_name' do
|
283
|
+
it 'should return the class name' do
|
284
|
+
subject.instance_class_name.should eq("Model")
|
285
|
+
end
|
286
|
+
end
|
281
287
|
end
|