Sha256: 022f8ebb5b288bfd89188a29254423d578bdc3180282aa75e5eb124b122aec10
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
module Legato module Management class WebProperty extend Finder def self.default_path "/accounts/~all/webproperties" end def path "/accounts/#{account_id}/webproperties/#{id}" end attr_accessor :id, :name, :website_url, :account_id, :user, :attributes def initialize(attributes, user) self.user = user self.id = attributes['id'] self.name = attributes.delete('name') self.website_url = attributes.delete('websiteUrl') self.account_id = attributes.delete('accountId') self.attributes = attributes end def self.for_account(account) all(account.user, account.path+'/webproperties') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems