Class: Fleakr::Api::HiddenOption

Inherits:
SimpleOption show all
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

#type, #value

Instance Method Summary collapse

Methods inherited from SimpleOption

#initialize

Constructor Details

This class inherits a constructor from Fleakr::Api::SimpleOption

Instance Method Details

#to_hashObject

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