Class: TheCity::Content
- Includes:
- Time
- Defined in:
- lib/the_city/content.rb
Overview
Base class for The City content types: Topics, Events, Prayers, Needs, and Albums
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#blurb ⇒ Object
readonly
Returns the value of attribute blurb.
-
#body ⇒ String
readonly
The body text of the post.
-
#featured ⇒ Object
readonly
Returns the value of attribute featured.
-
#file_attachments ⇒ Object
readonly
Returns the value of attribute file_attachments.
-
#gender_only ⇒ Object
readonly
Returns the value of attribute gender_only.
-
#gender_only_gender ⇒ Object
readonly
Returns the value of attribute gender_only_gender.
-
#group ⇒ TheCity::Group
readonly
The group where the content originated.
-
#group_id ⇒ Object
readonly
Returns the value of attribute group_id.
-
#id ⇒ Integer
readonly
The id associated with the church account.
-
#leader_only ⇒ Object
readonly
Returns the value of attribute leader_only.
-
#member_only ⇒ Object
readonly
Returns the value of attribute member_only.
-
#plaza ⇒ Object
readonly
Returns the value of attribute plaza.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#shareable ⇒ Object
readonly
Returns the value of attribute shareable.
-
#short_url ⇒ Object
readonly
Returns the value of attribute short_url.
-
#title ⇒ String
readonly
The title of the post.
Attributes inherited from Base
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def address @address end |
#blurb ⇒ Object (readonly)
Returns the value of attribute blurb.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def blurb @blurb end |
#body ⇒ String (readonly)
Returns 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 user end |
#featured ⇒ Object (readonly)
Returns the value of attribute featured.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def featured @featured end |
#file_attachments ⇒ Object (readonly)
Returns the value of attribute file_attachments.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def @file_attachments end |
#gender_only ⇒ Object (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_gender ⇒ Object (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 |
#group ⇒ TheCity::Group (readonly)
Returns The group where the content originated.
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 user end |
#group_id ⇒ Object (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 |
#id ⇒ Integer (readonly)
Returns 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 user end |
#leader_only ⇒ Object (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_only ⇒ Object (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 |
#plaza ⇒ Object (readonly)
Returns the value of attribute plaza.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def plaza @plaza end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def priority @priority end |
#shareable ⇒ Object (readonly)
Returns the value of attribute shareable.
19 20 21 |
# File 'lib/the_city/content.rb', line 19 def shareable @shareable end |
#short_url ⇒ Object (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 |
#title ⇒ String (readonly)
Returns 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 user end |