Class: Iora::Models::ExamplePage

Inherits:
Element
  • Object
show all
Defined in:
lib/iora/models/example_page.rb

Overview

The ExamplePage class represents an element, an element used by the Wolfram Alpha API when a query cannot be meaningfully computed, but is recognized as a category for which a set of example queries has already been prepared.

For example, the query "calculus" would return an ExamplePage object linking to http://www.wolframalpha.com/examples/Calculus.html.

Instance Attribute Summary

Attributes inherited from Element

#element

Instance Method Summary collapse

Methods inherited from Element

#initialize, #to_xml

Methods included from Associations::HasOne

#has_one

Methods included from Associations::Helpers

#parse_element, #tag_for

Methods included from Associations::HasMany

#has_many

Methods included from Associations::HasAttribute

#has_attribute

Constructor Details

This class inherits a constructor from Iora::Models::Element

Instance Method Details

#categoryString


16
# File 'lib/iora/models/example_page.rb', line 16

has_attribute :category

#urlString


20
# File 'lib/iora/models/example_page.rb', line 20

has_attribute :url