Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
expand documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
snatchev committed Jun 10, 2015
1 parent 74df1c8 commit 8327f02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/spaceship/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ def set_client(client)
end

##
# Remaps the attributes passed into the initializer to the model attributes using the map defined by `attr_map`
# Remaps the attributes passed into the initializer to the model
# attributes using the map defined by `attr_map`.
#
# This method consumes the input parameter meaning attributes that were
# remapped are deleted.
#
# @return (Hash) the attribute mapping used by `remap_keys!`
def remap_keys!(attrs)
return if attr_mapping.nil?

Expand Down

0 comments on commit 8327f02

Please sign in to comment.