Class: Pupil::URL
- Inherits:
-
Object
- Object
- Pupil::URL
- Defined in:
- lib/pupil/schemes.rb
Instance Attribute Summary (collapse)
-
- (Object) end
readonly
Returns the value of attribute end.
-
- (Object) expanded_url
readonly
Returns the value of attribute expanded_url.
-
- (Object) start
readonly
Returns the value of attribute start.
-
- (Object) url
readonly
Returns the value of attribute url.
Instance Method Summary (collapse)
-
- (URL) initialize(element)
constructor
A new instance of URL.
Constructor Details
- (URL) initialize(element)
A new instance of URL
92 93 94 95 96 97 |
# File 'lib/pupil/schemes.rb', line 92 def initialize(element) @url = element.elements['url'].text() @expanded_url = element.elements['expanded_url'].text() @start = element.attributes['start'] @end = element.attributes['end'] end |
Instance Attribute Details
- (Object) end (readonly)
Returns the value of attribute end
90 91 92 |
# File 'lib/pupil/schemes.rb', line 90 def end @end end |
- (Object) expanded_url (readonly)
Returns the value of attribute expanded_url
88 89 90 |
# File 'lib/pupil/schemes.rb', line 88 def @expanded_url end |
- (Object) start (readonly)
Returns the value of attribute start
89 90 91 |
# File 'lib/pupil/schemes.rb', line 89 def start @start end |
- (Object) url (readonly)
Returns the value of attribute url
87 88 89 |
# File 'lib/pupil/schemes.rb', line 87 def url @url end |