Class: URL::JSONHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/url/handlers.rb

Direct Known Subclasses

ASJSONHandler, BaseJSONHandler, YajlHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#strObject (readonly)

Returns the value of attribute str.



36
37
38
# File 'lib/url/handlers.rb', line 36

def str
  @str
end

Instance Method Details

#parseObject

Raises:



41
42
43
# File 'lib/url/handlers.rb', line 41

def parse
  raise Exception, "You need to implement #{self.class}#parse"
end