Class: Iora::Models::Pod

Inherits:
Element show all
Defined in:
lib/iora/models/pod.rb

Overview

The Pod class represents a element, an element used by the Wolfram Alpha API to contain a group of related results. For example, the query "amanita" would produce several pods, including the mushroom's scientific name, taxonomy, and image, among others.

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

#error?Boolean


32
# File 'lib/iora/models/pod.rb', line 32

has_attribute :error?, Boolean, default: false

#idString


22
# File 'lib/iora/models/pod.rb', line 22

has_attribute :id

#positionInteger


27
# File 'lib/iora/models/pod.rb', line 27

has_attribute :position, Integer

#primary?String


37
# File 'lib/iora/models/pod.rb', line 37

has_attribute :primary?, Boolean, default: false

#scannerString


18
# File 'lib/iora/models/pod.rb', line 18

has_attribute :scanner

#subpodsArray<Subpod>


41
# File 'lib/iora/models/pod.rb', line 41

has_many :subpods, Subpod

#titleString


14
# File 'lib/iora/models/pod.rb', line 14

has_attribute :title