Class: Rx::Type
- Inherits:
-
Object
- Object
- Rx::Type
- Defined in:
- lib/rx/ruby/Rx.rb
Direct Known Subclasses
Defined Under Namespace
Modules: NoParams Classes: Core
Instance Method Summary collapse
- #assert_valid_params(param) ⇒ Object
-
#initialize(param, rx) ⇒ Type
constructor
A new instance of Type.
- #uri ⇒ Object
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 |
#uri ⇒ Object
150 |
# File 'lib/rx/ruby/Rx.rb', line 150 def uri; self.class.uri; end |