Class: Locomotive::RelationalAlgebra::OffsetType
- Inherits:
-
ColumnStructureEntry
- Object
- ColumnStructureEntry
- Locomotive::RelationalAlgebra::OffsetType
- Includes:
- XML
- Defined in:
- lib/locomotive/relational_algebra/query_information.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize(offset, type) ⇒ OffsetType
constructor
A new instance of OffsetType.
- #items ⇒ Object
- #offsets ⇒ Object
- #to_xml ⇒ Object
Methods included from XML
Constructor Details
#initialize(offset, type) ⇒ OffsetType
Returns a new instance of OffsetType.
186 187 188 189 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 186 def initialize(offset, type) @offset = offset @type = type end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
183 184 185 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 183 def offset @offset end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
183 184 185 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 183 def type @type end |
Instance Method Details
#clone ⇒ Object
199 200 201 202 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 199 def clone OffsetType.new(offset.clone, type.clone) end |
#items ⇒ Object
191 192 193 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 191 def items [offset] end |
#offsets ⇒ Object
195 196 197 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 195 def offsets [self] end |
#to_xml ⇒ Object
204 205 206 |
# File 'lib/locomotive/relational_algebra/query_information.rb', line 204 def to_xml offset_ :item => offset.to_xml, :type => type.to_xml end |