Class: Iora::Models::Source

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

Overview

The Source class represents a element, an element used by the Wolfram Alpha API to provide a link to a web page of source information. Source information is not always present, such as for a purely mathematical computation.

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

#textString

Returns a short description of the source.

Returns:

  • (String)

    a short description of the source


17
# File 'lib/iora/models/source.rb', line 17

has_attribute :text

#urlString

Returns the source URL.

Returns:

  • (String)

    the source URL


13
# File 'lib/iora/models/source.rb', line 13

has_attribute :url