Class: Marbu::Models::Key
- Inherits:
-
KeyValueBase
- Object
- KeyValueBase
- Marbu::Models::Key
- Defined in:
- lib/marbu/models/mrf/base.rb
Instance Attribute Summary collapse
-
#exchangeable ⇒ Object
Returns the value of attribute exchangeable.
Attributes inherited from KeyValueBase
Instance Method Summary collapse
- #default_options ⇒ Object
-
#initialize(ext_options = {}) ⇒ Key
constructor
A new instance of Key.
Methods inherited from KeyValueBase
#blank?, #present?, #serializable_hash, #to_s
Constructor Details
#initialize(ext_options = {}) ⇒ Key
Returns a new instance of Key.
108 109 110 111 112 113 |
# File 'lib/marbu/models/mrf/base.rb', line 108 def initialize( = {} ) = .merge( .delete_if{|k,v|v.nil?} ) self.exchangeable = .delete(:exchangeable) super() end |
Instance Attribute Details
#exchangeable ⇒ Object
Returns the value of attribute exchangeable.
106 107 108 |
# File 'lib/marbu/models/mrf/base.rb', line 106 def exchangeable @exchangeable end |
Instance Method Details
#default_options ⇒ Object
115 116 117 118 119 |
# File 'lib/marbu/models/mrf/base.rb', line 115 def { :exchangeable => true } end |