lib/legato/management/account.rb in legato-0.6.2 vs lib/legato/management/account.rb in legato-0.7.0
- old
+ new
@@ -9,18 +9,17 @@
def path
"/accounts/#{id}"
end
- attr_accessor :id, :name, :user
- attr_writer :web_properties
+ GA_ATTRIBUTES = {
+ :id => 'id',
+ :name => 'name'
+ }
- def initialize(attributes, user)
- self.user = user
+ include Model
- self.id = attributes['id'] || attributes[:id]
- self.name = attributes['name'] || attributes[:name]
- end
+ attr_writer :web_properties
def web_properties
@web_properties ||= WebProperty.for_account(self)
end