Class: Xing::Group
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#posted_at ⇒ Object
Time.
-
#url ⇒ Object
String.
Methods inherited from Base
#[], #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from Xing::Base
Instance Method Details
#==(other) ⇒ Boolean
17 18 19 |
# File 'lib/xing/group.rb', line 17 def ==(other) super || (other.class == self.class && other.id == self.id) end |
#posted_at ⇒ Object
Returns Time.
6 7 8 |
# File 'lib/xing/group.rb', line 6 def posted_at @posted_at ||= Time.parse(@attrs['created_at']).utc unless @attrs['created_at'].nil? end |
#url ⇒ Object
Returns String.
11 12 13 |
# File 'lib/xing/group.rb', line 11 def url @url ||= @attrs["permalink"] unless @attrs["permalink"].nil? end |