Class: Range

Inherits:
Object
  • Object
show all
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

Instance Method Details

#to_jsonObject

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