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.
41 42 43 |
# File 'lib/url/handlers.rb', line 41 def initialize(str) @str = str end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
40 41 42 |
# File 'lib/url/handlers.rb', line 40 def str @str end |
Instance Method Details
#parse ⇒ Object
45 46 47 |
# File 'lib/url/handlers.rb', line 45 def parse raise Exception, "You need to implement #{self.class}#parse" end |