Module: XRBP::Model::Base::ClassMethods
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/xrbp/model/base.rb', line 6 def connection @connection end |
#opts ⇒ Object
Returns the value of attribute opts.
6 7 8 |
# File 'lib/xrbp/model/base.rb', line 6 def opts @opts end |
Instance Method Details
#set_opts(opts = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/xrbp/model/base.rb', line 8 def set_opts(opts={}) self.opts ||= {} self.opts.merge!(opts) self.connection = opts[:connection] if opts[:connection] end |