Class: Xing::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/xing/group.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Xing::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


17
18
19
# File 'lib/xing/group.rb', line 17

def ==(other)
  super || (other.class == self.class && other.id == self.id)
end

#posted_atObject

Returns Time.

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

#urlObject

Returns String.

Returns:

  • String



11
12
13
# File 'lib/xing/group.rb', line 11

def url
  @url ||= @attrs["permalink"] unless @attrs["permalink"].nil?
end