Class: ApartmentRatings::Reviews::Rating

Inherits:
Hashie::Trash
  • Object
show all
Includes:
Hashie::Extensions::IndifferentAccess
Defined in:
lib/apartment_ratings/reviews/rating.rb

Class Method Summary collapse

Class Method Details

.coerce(raw_rating) ⇒ Object



7
8
9
# File 'lib/apartment_ratings/reviews/rating.rb', line 7

def self.coerce(raw_rating)
  new(value: raw_rating)
end