Class: Ditto::Logo
- Inherits:
-
Object
- Object
- Ditto::Logo
- Defined in:
- lib/ditto/logo.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #brand ⇒ Object
- #confidence ⇒ Object
-
#initialize(data) ⇒ Logo
constructor
A new instance of Logo.
Constructor Details
#initialize(data) ⇒ Logo
Returns a new instance of Logo.
5 6 7 |
# File 'lib/ditto/logo.rb', line 5 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/ditto/logo.rb', line 3 def data @data end |
Instance Method Details
#brand ⇒ Object
9 10 11 |
# File 'lib/ditto/logo.rb', line 9 def brand data[:brand] end |
#confidence ⇒ Object
13 14 15 |
# File 'lib/ditto/logo.rb', line 13 def confidence data[:match_quality] end |