Class: Axe::API::Options
- Inherits:
-
Object
- Object
- Axe::API::Options
- Extended by:
- Forwardable
- Defined in:
- lib/axe/api/options.rb
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize ⇒ Options
constructor
A new instance of Options.
- #to_h ⇒ Object
- #to_hash ⇒ Object
- #to_json(options = nil) ⇒ Object (also: #to_s)
Constructor Details
Instance Method Details
#empty? ⇒ Boolean
29 30 31 |
# File 'lib/axe/api/options.rb', line 29 def empty? to_hash.empty? end |
#to_h ⇒ Object
17 18 19 |
# File 'lib/axe/api/options.rb', line 17 def to_h to_hash end |
#to_hash ⇒ Object
21 22 23 |
# File 'lib/axe/api/options.rb', line 21 def to_hash @rules.to_hash.merge(@custom) end |
#to_json(options = nil) ⇒ Object Also known as: to_s
25 26 27 |
# File 'lib/axe/api/options.rb', line 25 def to_json( = nil) to_hash.to_json end |