lib/siteleaf/site.rb in siteleaf-0.8.1 vs lib/siteleaf/site.rb in siteleaf-0.8.3
- old
+ new
@@ -1,9 +1,9 @@
module Siteleaf
class Site < Entity
- attr_accessor :id, :title, :domain, :timezone, :user_id, :created_at, :updated_at
- protected :id=, :user_id=, :created_at=, :updated_at=
+ attr_accessor :title, :domain, :timezone
+ attr_reader :id, :user_id, :created_at, :updated_at
def self.find_by_domain(domain)
result = Client.get "sites", {"domain" => domain}
self.new(result.first) if result and result.size >= 1
end
\ No newline at end of file