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

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.


[View source]
def class_data(node : HTML5::Node) : Array(String) #

[View source]
def class_values(data : String) : Tuple(String | Nil, String, String) | Nil #

[View source]
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


[View source]
def definition(name : String, attributes : Array(Tuple(String | Nil, String, String))) : String #

[View source]
def find_element_in_page(page : String, selector : String) : Array(HTML5::Node) #

[View source]
def html_page(page : String) #

[View source]
def perform(name : String) : Array(Hash(String, Array(Tuple(String | Nil, String, String)))) #

[View source]
def str_type(str : String) : String #

[View source]
def valid_headings(page : String) : Array(HTML5::Node) #

[View source]
def write_file(name : String) #

[View source]