Class: Rave::Models::Element::Gadget
- Inherits:
-
Rave::Models::Element
- Object
- Component
- Rave::Models::Element
- Rave::Models::Element::Gadget
- Defined in:
- lib/models/element.rb
Overview
A Google Gadget element within a document.
Constant Summary
Constants inherited from Rave::Models::Element
Constants included from Rave::Mixins::ObjectFactory
Rave::Mixins::ObjectFactory::WILDCARD
Constants inherited from Component
Component::GENERATED_PATTERN, Component::GENERATED_PREFIX
Instance Attribute Summary
Attributes included from Rave::Mixins::ObjectFactory
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(fields = {}) ⇒ Gadget
constructor
A new instance of Gadget.
Methods inherited from Rave::Models::Element
Methods included from Rave::Mixins::ObjectFactory
Methods inherited from Component
#generated?, #id, #to_s, #unique_id
Methods included from Rave::Mixins::Logger
Constructor Details
#initialize(fields = {}) ⇒ Gadget
Returns a new instance of Gadget.
47 48 49 50 |
# File 'lib/models/element.rb', line 47 def initialize(fields = {}) # Gadget has 'fields' rather than 'properties'. super(fields) end |