class ElasticWeb::Relation

Attributes

data[R]

Public Class Methods

new(data) click to toggle source
# File lib/elasticweb/relation.rb, line 5
def initialize(data)
  @data = OpenStruct.new(data)
end

Public Instance Methods

method_missing(method_sym, *arguments, &block) click to toggle source
Calls superclass method
# File lib/elasticweb/relation.rb, line 9
def method_missing(method_sym, *arguments, &block)
  if @data.respond_to?(method_sym)
    @data.send(method_sym)
  else
    super
  end
end