Class: Rawscsi::Query::Stringifier
- Inherits:
-
Object
- Object
- Rawscsi::Query::Stringifier
- Defined in:
- lib/rawscsi/query/stringifier.rb
Instance Attribute Summary collapse
-
#bool_hash ⇒ Object
readonly
Returns the value of attribute bool_hash.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(bool_hash) ⇒ Stringifier
constructor
A new instance of Stringifier.
Constructor Details
#initialize(bool_hash) ⇒ Stringifier
Returns a new instance of Stringifier.
6 7 8 |
# File 'lib/rawscsi/query/stringifier.rb', line 6 def initialize(bool_hash) @bool_hash = bool_hash end |
Instance Attribute Details
#bool_hash ⇒ Object (readonly)
Returns the value of attribute bool_hash.
4 5 6 |
# File 'lib/rawscsi/query/stringifier.rb', line 4 def bool_hash @bool_hash end |
Instance Method Details
#build ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rawscsi/query/stringifier.rb', line 10 def build if compound?(bool_hash) Rawscsi::Stringifier::Compound.new(bool_hash).build else Rawscsi::Stringifier::Simple.new(bool_hash).build end end |