Skip to content

Commit

Permalink
Type conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
thesecretmaster committed Sep 5, 2018
1 parent 77d6603 commit 2a564c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/se/api/types/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Tag

def initialize(item_json)
@json = Hash(item_json)
@count = @json['count']
@count = @json['count'].to_i
@synonyms = Array(@json['synonyms'])
@name = @json['name']
end
Expand Down

0 comments on commit 2a564c0

Please sign in to comment.