Class: Rave::Models::Element::Gadget

Inherits:
Rave::Models::Element show all
Defined in:
lib/models/element.rb

Overview

A Google Gadget element within a document.

Constant Summary

Constants inherited from Rave::Models::Element

JAVA_CLASS

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

#type

Attributes inherited from Component

#context

Instance Method Summary collapse

Methods inherited from Rave::Models::Element

#get, #set, #to_json

Methods included from Rave::Mixins::ObjectFactory

included

Methods inherited from Component

#generated?, #id, #to_s, #unique_id

Methods included from Rave::Mixins::Logger

#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