Class: Basecampx::Topic

Inherits:
Resource show all
Defined in:
lib/basecampx/resources/topic.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Resource

#delete, #initialize, parse, #save, #update_attributes

Methods included from Relations

#has_many, #has_one, #mount

Constructor Details

This class inherits a constructor from Basecampx::Resource

Instance Attribute Details

#attachmentsObject

Returns the value of attribute attachments.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def attachments
  @attachments
end

#created_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def created_at
  @created_at
end

#excerptObject

Returns the value of attribute excerpt.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def excerpt
  @excerpt
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def id
  @id
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def title
  @title
end

#topicableObject

Returns the value of attribute topicable.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def topicable
  @topicable
end

#updated_atObject

Returns the value of attribute updated_at.



4
5
6
# File 'lib/basecampx/resources/topic.rb', line 4

def updated_at
  @updated_at
end

Class Method Details

.allObject

GET /topics.json



9
10
11
# File 'lib/basecampx/resources/topic.rb', line 9

def self.all
  self.parse Basecampx.request "/topics.json"
end