Sha256: 7d3be0f07adfbd3814e6c43c68422593b64081161ecced86479a2aff7da369e5
Contents?: true
Size: 788 Bytes
Versions: 6
Compression:
Stored size: 788 Bytes
Contents
module Legato module Management class Profile extend Finder include ProfileMethods def self.default_path "/accounts/~all/webproperties/~all/profiles" end def path self.class.default_path + "/" + id.to_s end attr_accessor :id, :name, :web_property_id, :user def initialize(attributes, user) self.user = user self.id = attributes['id'] self.name = attributes['name'] self.web_property_id = attributes['webPropertyId'] end def self.for_account(account) all(account.user, account.path+'/webproperties/~all/profiles') end def self.for_web_property(web_property) all(web_property.user, web_property.path+'/profiles') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems