Class: URL::JSONHandler
- Inherits:
-
Object
- Object
- URL::JSONHandler
- Defined in:
- lib/url/handlers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(str) ⇒ JSONHandler
constructor
A new instance of JSONHandler.
- #parse ⇒ Object
Constructor Details
#initialize(str) ⇒ JSONHandler
Returns a new instance of JSONHandler.
37 38 39 |
# File 'lib/url/handlers.rb', line 37 def initialize(str) @str = str end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
36 37 38 |
# File 'lib/url/handlers.rb', line 36 def str @str end |
Instance Method Details
#parse ⇒ Object
41 42 43 |
# File 'lib/url/handlers.rb', line 41 def parse raise Exception, "You need to implement #{self.class}#parse" end |