Class: TheCity::Content

Inherits:
Base
  • Object
show all
Includes:
Time
Defined in:
lib/the_city/content.rb

Overview

Base class for The City content types: Topics, Events, Prayers, Needs, and Albums

Direct Known Subclasses

Event, Need, Prayer, Topic

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Method Summary

Methods included from Time

#created?, #created_at, #ended?, #ending_at, #started?, #starting_at, #updated?, #updated_at

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, from_response, #initialize, #memoize, object_attr_reader, uri_attr_reader

Constructor Details

This class inherits a constructor from TheCity::Base

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



19
20
21
# File 'lib/the_city/content.rb', line 19

def address
  @address
end

#blurbObject (readonly)

Returns the value of attribute blurb.



19
20
21
# File 'lib/the_city/content.rb', line 19

def blurb
  @blurb
end

#bodyString (readonly)

Returns The body text of the post.

Returns:

  • (String)

    The body text of the post.



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/the_city/content.rb', line 17

class Content < TheCity::Base
  include TheCity::Time
  attr_reader :id, :title, :body, :blurb, :group_id,
              :leader_only, :priority, :member_only, :gender_only, :gender_only_gender, :featured, 
              :short_url, :file_attachments, :plaza, :shareable, :address
  object_attr_reader :User, :user
  object_attr_reader :Group, :group

  alias author user
  
end

Returns the value of attribute featured.



19
20
21
# File 'lib/the_city/content.rb', line 19

def featured
  @featured
end

#file_attachmentsObject (readonly)

Returns the value of attribute file_attachments.



19
20
21
# File 'lib/the_city/content.rb', line 19

def file_attachments
  @file_attachments
end

#gender_onlyObject (readonly)

Returns the value of attribute gender_only.



19
20
21
# File 'lib/the_city/content.rb', line 19

def gender_only
  @gender_only
end

#gender_only_genderObject (readonly)

Returns the value of attribute gender_only_gender.



19
20
21
# File 'lib/the_city/content.rb', line 19

def gender_only_gender
  @gender_only_gender
end

#groupTheCity::Group (readonly)

Returns The group where the content originated.

Returns:



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/the_city/content.rb', line 17

class Content < TheCity::Base
  include TheCity::Time
  attr_reader :id, :title, :body, :blurb, :group_id,
              :leader_only, :priority, :member_only, :gender_only, :gender_only_gender, :featured, 
              :short_url, :file_attachments, :plaza, :shareable, :address
  object_attr_reader :User, :user
  object_attr_reader :Group, :group

  alias author user
  
end

#group_idObject (readonly)

Returns the value of attribute group_id.



19
20
21
# File 'lib/the_city/content.rb', line 19

def group_id
  @group_id
end

#idInteger (readonly)

Returns The id associated with the church account.

Returns:

  • (Integer)

    The id associated with the church account.



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/the_city/content.rb', line 17

class Content < TheCity::Base
  include TheCity::Time
  attr_reader :id, :title, :body, :blurb, :group_id,
              :leader_only, :priority, :member_only, :gender_only, :gender_only_gender, :featured, 
              :short_url, :file_attachments, :plaza, :shareable, :address
  object_attr_reader :User, :user
  object_attr_reader :Group, :group

  alias author user
  
end

#leader_onlyObject (readonly)

Returns the value of attribute leader_only.



19
20
21
# File 'lib/the_city/content.rb', line 19

def leader_only
  @leader_only
end

#member_onlyObject (readonly)

Returns the value of attribute member_only.



19
20
21
# File 'lib/the_city/content.rb', line 19

def member_only
  @member_only
end

#plazaObject (readonly)

Returns the value of attribute plaza.



19
20
21
# File 'lib/the_city/content.rb', line 19

def plaza
  @plaza
end

#priorityObject (readonly)

Returns the value of attribute priority.



19
20
21
# File 'lib/the_city/content.rb', line 19

def priority
  @priority
end

#shareableObject (readonly)

Returns the value of attribute shareable.



19
20
21
# File 'lib/the_city/content.rb', line 19

def shareable
  @shareable
end

#short_urlObject (readonly)

Returns the value of attribute short_url.



19
20
21
# File 'lib/the_city/content.rb', line 19

def short_url
  @short_url
end

#titleString (readonly)

Returns The title of the post.

Returns:

  • (String)

    The title of the post.



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/the_city/content.rb', line 17

class Content < TheCity::Base
  include TheCity::Time
  attr_reader :id, :title, :body, :blurb, :group_id,
              :leader_only, :priority, :member_only, :gender_only, :gender_only_gender, :featured, 
              :short_url, :file_attachments, :plaza, :shareable, :address
  object_attr_reader :User, :user
  object_attr_reader :Group, :group

  alias author user
  
end