Top Level Namespace
Defined in:
Constant Summary
-
IGNORE_ATTRS =
["access_token", "v", "id", "ids", "lang"]
-
INVALID_HEADINGS =
["Parameters", "Example", "Notes", "References", "Endpoints", "Subobjects", "Other types"]
-
URL =
"https://wiki.guildwars2.com/wiki/API:2"
Method Summary
-
attribute_nodes(heading : HTML5::Node) : Array(HTML5::Node)
From a heading on the page i.e.
- class_data(node : HTML5::Node) : Array(String)
- class_values(data : String) : Tuple(String | Nil, String, String) | Nil
-
create_getters(attributes : Array(Tuple(String | Nil, String, String))) : String
The tuple will contain the following data: [0] - comments for the method (optional) [1] - name of the method [2] - type of the method
- definition(name : String, attributes : Array(Tuple(String | Nil, String, String))) : String
- find_element_in_page(page : String, selector : String) : Array(HTML5::Node)
- html_page(page : String)
- perform(name : String) : Array(Hash(String, Array(Tuple(String | Nil, String, String))))
- str_type(str : String) : String
- valid_headings(page : String) : Array(HTML5::Node)
- write_file(name : String)
Method Detail
def attribute_nodes(heading : HTML5::Node) : Array(HTML5::Node)
#
From a heading on the page i.e. Armor, go to the next, and only next, ul element and get the text from all its child elements.
def create_getters(attributes : Array(Tuple(String | Nil, String, String))) : String
#
The tuple will contain the following data: [0] - comments for the method (optional) [1] - name of the method [2] - type of the method
def definition(name : String, attributes : Array(Tuple(String | Nil, String, String))) : String
#
def perform(name : String) : Array(Hash(String, Array(Tuple(String | Nil, String, String))))
#