Class: AppStoreLookup::AppRating

Inherits:
Object
  • Object
show all
Defined in:
lib/app_store_lookup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppRating

Returns a new instance of AppRating.



99
100
101
102
# File 'lib/app_store_lookup.rb', line 99

def initialize(attributes = {})
  @count = attributes[:count]
  @rating = attributes[:rating]
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



97
98
99
# File 'lib/app_store_lookup.rb', line 97

def count
  @count
end

#ratingObject (readonly)

Returns the value of attribute rating.



97
98
99
# File 'lib/app_store_lookup.rb', line 97

def rating
  @rating
end