Class: Rx::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/rx/ruby/Rx.rb

Direct Known Subclasses

Core

Defined Under Namespace

Modules: NoParams Classes: Core

Instance Method Summary collapse

Constructor Details

#initialize(param, rx) ⇒ Type

Returns a new instance of Type.



146
147
148
# File 'lib/rx/ruby/Rx.rb', line 146

def initialize(param, rx)
  assert_valid_params(param)
end

Instance Method Details

#assert_valid_params(param) ⇒ Object



152
153
154
155
156
157
158
# File 'lib/rx/ruby/Rx.rb', line 152

def assert_valid_params(param)
  param.each_key { |k|
    unless self.allowed_param?(k) then
      raise Rx::Exception.new("unknown parameter #{k} for #{uri}")
    end
  }
end

#uriObject



150
# File 'lib/rx/ruby/Rx.rb', line 150

def uri; self.class.uri; end