goldfinger 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goldfinger/link.rb +4 -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: 86e84a0c8748697ba17c1291e699810185a21353
|
4
|
+
data.tar.gz: 26f8ed3895e9f991b6ff93c9505ebc4583a2780c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 147f996f20676112150309e1d622a9ab95ca4a6df174bf10d51be7ade0206001073f047987e2afa98986a320ab4df741830e37d47622aa4757c75b4bbb465b7b
|
7
|
+
data.tar.gz: 25a53efb11942a4ce3af8239a554243d2d8c617b41cdef88ff6084e61049390adb5774f31a18bb40e4181432d18a26bb7cd7c3b924e048ef16345c25009c4bdd
|
data/lib/goldfinger/link.rb
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
module Goldfinger
|
2
2
|
# @!attribute [r] href
|
3
3
|
# @return [String] The href the link points to
|
4
|
+
# @!attribute [r] template
|
5
|
+
# @return [String] The template the link contains
|
4
6
|
# @!attribute [r] type
|
5
7
|
# @return [String] The mime type of the link
|
6
8
|
# @!attribute [r] rel
|
7
9
|
# @return [String] The relation descriptor of the link
|
8
10
|
class Link
|
9
|
-
attr_reader :href, :type, :rel
|
11
|
+
attr_reader :href, :template, :type, :rel
|
10
12
|
|
11
13
|
def initialize(a)
|
12
14
|
@href = a[:href]
|
15
|
+
@template = a[:template]
|
13
16
|
@type = a[:type]
|
14
17
|
@rel = a[:rel]
|
15
18
|
@titles = a[:titles]
|