class MostOts::Base

Public Class Methods

new(data) click to toggle source
# File lib/most_ots/models/base.rb, line 4
def initialize(data)
  @data = data
end

Public Instance Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/most_ots/models/base.rb, line 8
def method_missing(method_name, *args, &block)
  if @data.key?(method_name)
    @data[method_name]
  else
    super
  end
end
respond_to_missing?(method_name, _include_private = false) click to toggle source
# File lib/most_ots/models/base.rb, line 16
def respond_to_missing?(method_name, _include_private = false)
  @data.key?(method_name)
end