mitchellh-rubyuw 0.3.1 → 0.4.0
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/VERSION +1 -1
- data/lib/myuw/sln.rb +8 -2
- data/lib/myuw.rb +2 -1
- data/rubyuw.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/myuw/sln.rb
CHANGED
@@ -3,14 +3,14 @@ class MyUW
|
|
3
3
|
# Gets information regarding a specific SLN, returning
|
4
4
|
# information in a SLN object.
|
5
5
|
class SLNInfo
|
6
|
-
|
6
|
+
attr_reader :term
|
7
7
|
attr_reader :sln
|
8
8
|
attr_accessor :myuw
|
9
9
|
attr_reader :data
|
10
10
|
|
11
11
|
def initialize(myuw)
|
12
12
|
@myuw = myuw
|
13
|
-
@term =
|
13
|
+
@term = nil
|
14
14
|
@data = nil
|
15
15
|
@sln = nil
|
16
16
|
end
|
@@ -21,6 +21,12 @@ class MyUW
|
|
21
21
|
@data = nil
|
22
22
|
end
|
23
23
|
|
24
|
+
# Custom setter for term to reset data
|
25
|
+
def term=(value)
|
26
|
+
@term = value
|
27
|
+
@data = nil
|
28
|
+
end
|
29
|
+
|
24
30
|
# Fetches the information for the given SLN.
|
25
31
|
def fetch_data
|
26
32
|
raise("SLN not set.") if @sln.nil?
|
data/lib/myuw.rb
CHANGED
data/rubyuw.gemspec
CHANGED