Class: Fleakr::Api::TypeOption
- Inherits:
-
SimpleOption
- Object
- SimpleOption
- Fleakr::Api::TypeOption
- Defined in:
- lib/fleakr/api/option.rb
Overview
TypeOption
Specify the type of this photo (e.g. photo / screenshot / other)
Instance Attribute Summary
Attributes inherited from SimpleOption
Instance Method Summary collapse
-
#to_hash ⇒ Object
Hash representation of this type.
-
#value ⇒ Object
:nodoc:.
Methods inherited from SimpleOption
Constructor Details
This class inherits a constructor from Fleakr::Api::SimpleOption
Instance Method Details
#to_hash ⇒ Object
Hash representation of this type
154 155 156 |
# File 'lib/fleakr/api/option.rb', line 154 def to_hash {:content_type => value} end |
#value ⇒ Object
:nodoc:
144 145 146 147 148 149 150 |
# File 'lib/fleakr/api/option.rb', line 144 def value # :nodoc: case @value when :photo then 1 when :screenshot then 2 when :other then 3 end end |