grape-client 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grape_client/base.rb +10 -8
- data/lib/grape_client/version.rb +1 -1
- 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: 4ceaceb46fa4a688ef855c6fb4f93edbdce4eb91
|
4
|
+
data.tar.gz: fd74c6a7c64947991f1c18c9f008300af3cd74bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2af71e884d0235bcf3ca41c22147b1e13445ce843ec1bb37280709918a83956c3446ab8bd826c71f1fd85deb352fd4fca18187d41f78e1a6e621f79095622bd
|
7
|
+
data.tar.gz: f36fcae56089adfe5402349dc60a3a4e5f20f574ed7fc625421d9ef0161c3a3e6b6621184e1fc034cb8d506320d202d9f30013f4a5a92706de0bd17e75806e21
|
data/lib/grape_client/base.rb
CHANGED
@@ -9,14 +9,16 @@ module GrapeClient
|
|
9
9
|
include BelongsTo
|
10
10
|
include HasMany
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
attr_accessor :attributes
|
13
|
+
attr_accessor :site, :user, :password, :prefix
|
14
|
+
|
15
|
+
def inherited(child)
|
16
|
+
child.attributes = attributes.try(:dup) || []
|
17
|
+
child.site = GrapeClient.configuration.site
|
18
|
+
child.user = GrapeClient.configuration.user
|
19
|
+
child.password = GrapeClient.configuration.password
|
20
|
+
child.prefix = GrapeClient.configuration.prefix
|
21
|
+
end
|
20
22
|
|
21
23
|
def attr_accessor(*names)
|
22
24
|
names.each do |name|
|
data/lib/grape_client/version.rb
CHANGED