Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/models/range.rb
Overview
Extend a standard Range so that it can be serialized easily
Constant Summary collapse
- JAVA_CLASS =
:nodoc:
'com.google.wave.api.Range'
Instance Method Summary collapse
-
#to_json ⇒ Object
Convert to a hash for sending in an operation.
Instance Method Details
#to_json ⇒ Object
Convert to a hash for sending in an operation.
7 8 9 10 11 12 13 |
# File 'lib/models/range.rb', line 7 def to_json { 'javaClass' => JAVA_CLASS, 'start' => min, 'end' => max }.to_json end |