Skip to content

Commit

Permalink
Return self from load
Browse files Browse the repository at this point in the history
  • Loading branch information
scotchi committed Oct 10, 2012
1 parent 95488cf commit f658523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ruby/lib/directededge/item.rb
Expand Up @@ -36,6 +36,7 @@ def initialize(database, id)
def load
data = XML.parse(resource.get).first
@data.keys.each { |key| @data[key].set(data[key]) }
self
end

def save
Expand Down

0 comments on commit f658523

Please sign in to comment.