Skip to content

Commit

Permalink
got rid of object type in name
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jan 14, 2012
1 parent f6fcd1b commit 4f0e456
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neoflix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def get_poster(data)
def get_name(data)
case data["type"]
when "Movie"
"Movie #{data["title"]}"
data["title"]
when "Occupation"
"Occupation #{data["occupation"]}"
data["occupation"]
when "User"
"User: #{data["userId"]} Gender: #{data["gender"]} Age: #{data["age"]}"
"#{data["userId"]} Gender: #{data["gender"]} Age: #{data["age"]}"
when "Genera"
"Genera #{data["genera"]}"
data["genera"]
end
end

Expand Down

0 comments on commit 4f0e456

Please sign in to comment.