Method: Pawnee::Actions::User#initialize
- Defined in:
- lib/pawnee/pawnee/actions/user.rb
#initialize(base, attributes) ⇒ User
Returns a new instance of User.
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/pawnee/pawnee/actions/user.rb', line 48 def initialize(base, attributes) @base = base if attributes[:login] self.login = attributes[:login] # Read the current attributes from the system read_from_system() end # Set the attributes, track what changed update_attributes(attributes) end |