Class: INatGet::Data::Parser::Part Private

Inherits:
Object
  • Object
show all
Defined in:
lib/inat-get/data/parsers/defs.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

Assoc, Cached, Copy, Location, Model, PK, PrjDefault, PrjType, StrLocation

Defined Under Namespace

Classes: Ancestry, AssModel, Assoc, Cached, Children, Copy, Details, FromTaxon, JSON, Links, Location, Model, Observed, PK, PrjDefault, PrjMembers, PrjRules, PrjSearch, PrjType, StrLocation, Subprojects, Time

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ Part

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Part.



10
11
12
# File 'lib/inat-get/data/parsers/defs.rb', line 10

def initialize parser
  @parser = parser
end

Instance Attribute Details

#parserObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/inat-get/data/parsers/defs.rb', line 8

def parser
  @parser
end

Instance Method Details

#parse(source) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash)

Raises:

  • (NotImplementedError)


15
# File 'lib/inat-get/data/parsers/defs.rb', line 15

def parse(source) = raise NotImplementedError, "Not implemented method 'parse' in abstract class", caller_locations