Class: Echowrap::TasteProfile
- Defined in:
- lib/echowrap/taste_profile.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pending_tickets ⇒ Object
readonly
Returns the value of attribute pending_tickets.
-
#resolved ⇒ Object
readonly
Returns the value of attribute resolved.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#ticket ⇒ Object
readonly
Returns the value of attribute ticket.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
#==, attr_reader, #attrs, #initialize, #update
Constructor Details
This class inherits a constructor from Echowrap::Base
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def name @name end |
#pending_tickets ⇒ Object (readonly)
Returns the value of attribute pending_tickets.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def pending_tickets @pending_tickets end |
#resolved ⇒ Object (readonly)
Returns the value of attribute resolved.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def resolved @resolved end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def score @score end |
#ticket ⇒ Object (readonly)
Returns the value of attribute ticket.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def ticket @ticket end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def total @total end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/echowrap/taste_profile.rb', line 5 def type @type end |
Instance Method Details
#id ⇒ String
8 9 10 |
# File 'lib/echowrap/taste_profile.rb', line 8 def id @attrs[:id] || @attrs[:ticket] end |
#items ⇒ Array
13 14 15 |
# File 'lib/echowrap/taste_profile.rb', line 13 def items @items ||= map_collection(Echowrap::Item, :items) end |
#keyvalues ⇒ Echowrap::Keyvalues
18 19 20 |
# File 'lib/echowrap/taste_profile.rb', line 18 def keyvalues @keyvalues ||= Echowrap::Keyvalues.new(@attrs[:keyvalues]) end |
#predictions ⇒ Array
23 24 25 |
# File 'lib/echowrap/taste_profile.rb', line 23 def predictions @predictions ||= map_collection(Echowrap::Prediction, :predictions) end |