Class: Zona::OZonesElement
- Inherits:
-
JSONElement
- Object
- JSONElement
- Zona::OZonesElement
- Defined in:
- zona/OZonesElement.rb
Overview
Standard abstraction of an OZones element. To be inherited.
Instance Attribute Summary (collapse)
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) pe_id
readonly
Returns the value of attribute pe_id.
Class Method Summary (collapse)
-
+ (OZonesElement) new_with_id(id, client = nil)
Creates a new element with the custom ID.
Methods inherited from JSONElement
Instance Attribute Details
- (Object) name (readonly)
Returns the value of attribute name
94 95 96 |
# File 'zona/OZonesElement.rb', line 94 def name @name end |
- (Object) pe_id (readonly)
Returns the value of attribute pe_id
94 95 96 |
# File 'zona/OZonesElement.rb', line 94 def pe_id @pe_id end |
Class Method Details
+ (OZonesElement) new_with_id(id, client = nil)
Creates a new element with the custom ID
100 101 102 |
# File 'zona/OZonesElement.rb', line 100 def self.new_with_id(id, client=nil) self.new(self.build_json(id.to_i),client) end |