Class: Echowrap::TasteProfile

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/taste_profile.rb

Instance Attribute Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/echowrap/taste_profile.rb', line 5

def name
  @name
end

#pending_ticketsObject (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

#resolvedObject (readonly)

Returns the value of attribute resolved.



5
6
7
# File 'lib/echowrap/taste_profile.rb', line 5

def resolved
  @resolved
end

#scoreObject (readonly)

Returns the value of attribute score.



5
6
7
# File 'lib/echowrap/taste_profile.rb', line 5

def score
  @score
end

#ticketObject (readonly)

Returns the value of attribute ticket.



5
6
7
# File 'lib/echowrap/taste_profile.rb', line 5

def ticket
  @ticket
end

#totalObject (readonly)

Returns the value of attribute total.



5
6
7
# File 'lib/echowrap/taste_profile.rb', line 5

def total
  @total
end

#typeObject (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

#idString

Returns:

  • (String)


8
9
10
# File 'lib/echowrap/taste_profile.rb', line 8

def id
  @attrs[:id] || @attrs[:ticket]
end

#itemsArray

Returns:

  • (Array)


13
14
15
# File 'lib/echowrap/taste_profile.rb', line 13

def items
  @items ||= map_collection(Echowrap::Item, :items)
end

#keyvaluesEchowrap::Keyvalues

Returns:



18
19
20
# File 'lib/echowrap/taste_profile.rb', line 18

def keyvalues
  @keyvalues ||= Echowrap::Keyvalues.new(@attrs[:keyvalues])
end

#predictionsArray

Returns:

  • (Array)


23
24
25
# File 'lib/echowrap/taste_profile.rb', line 23

def predictions
  @predictions ||= map_collection(Echowrap::Prediction, :predictions)
end