Skip to content

Commit

Permalink
Merge pull request #20 from JFickel/rune_page_fix
Browse files Browse the repository at this point in the history
fixed rune page class: the writer methods weren't in the right scope
  • Loading branch information
intinig committed Mar 28, 2014
2 parents f4914cc + 7c21f35 commit 04c79db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/lol/rune_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class RunePage < Model
# @!attribute [r] current
# @return [Array] array of Lol::RuneSlot
attr_reader :slots
end

private
private

attr_writer :id, :name, :current
attr_writer :id, :name, :current

def slots= *runeslots
@slots = runeslots.flatten.map {|slot| RuneSlot.new slot}
def slots= *runeslots
@slots = runeslots.flatten.map {|slot| RuneSlot.new slot}
end
end
end

0 comments on commit 04c79db

Please sign in to comment.