Class: Fleakr::Api::HiddenOption
- Inherits:
-
SimpleOption
- Object
- SimpleOption
- Fleakr::Api::HiddenOption
- Defined in:
- lib/fleakr/api/option.rb
Overview
HiddenOption
Specify whether this photo should be hidden from search
Instance Attribute Summary
Attributes inherited from SimpleOption
Instance Method Summary collapse
-
#to_hash ⇒ Object
Hash representation of whether to hide this photo.
Methods inherited from SimpleOption
Constructor Details
This class inherits a constructor from Fleakr::Api::SimpleOption
Instance Method Details
#to_hash ⇒ Object
Hash representation of whether to hide this photo
168 169 170 |
# File 'lib/fleakr/api/option.rb', line 168 def to_hash {:hidden => (value ? 2 : 1)} end |