Class: SBF::Client::FullEvent
- Inherits:
-
Event
- Object
- BaseEntity
- TopLevelEntity
- Event
- SBF::Client::FullEvent
- Extended by:
- Forwardable
- Defined in:
- lib/stbaldricks/entities/event.rb
Direct Known Subclasses
Challenger::FullEvent, Donation::FullEvent, EventApplication::FullEvent, SBF::Client::Fundraiser::FullEvent, KidHonor::FullEvent, Photo::FullEvent, RecurringGift::FullEvent
Constant Summary
Constants inherited from TopLevelEntity
TopLevelEntity::DEFAULT_CLASS_ACTIONS, TopLevelEntity::DEFAULT_CRUD_ACTIONS, TopLevelEntity::DEFAULT_ENDPOINT, TopLevelEntity::DEFAULT_INSTANCE_ACTIONS
Constants inherited from BaseEntity
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#date ⇒ Object
Returns the value of attribute date.
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#event_title ⇒ Object
Returns the value of attribute event_title.
-
#fund_relationship_type ⇒ Object
Returns the value of attribute fund_relationship_type.
-
#fundraising_goal ⇒ Object
Returns the value of attribute fundraising_goal.
-
#fundraising_message ⇒ Object
Returns the value of attribute fundraising_message.
-
#how_created ⇒ Object
Returns the value of attribute how_created.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_date_confirmed ⇒ Object
Returns the value of attribute is_date_confirmed.
-
#is_open_for_fast_registration ⇒ Object
Returns the value of attribute is_open_for_fast_registration.
-
#is_open_for_registration ⇒ Object
Returns the value of attribute is_open_for_registration.
-
#is_private ⇒ Object
Returns the value of attribute is_private.
-
#is_time_confirmed ⇒ Object
Returns the value of attribute is_time_confirmed.
-
#modified_at ⇒ Object
readonly
Returns the value of attribute modified_at.
-
#modified_by ⇒ Object
Returns the value of attribute modified_by.
-
#offline_donation_form ⇒ Object
Returns the value of attribute offline_donation_form.
-
#offline_donation_uuid ⇒ Object
Returns the value of attribute offline_donation_uuid.
-
#promotional_code ⇒ Object
Returns the value of attribute promotional_code.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#status ⇒ Object
Returns the value of attribute status.
-
#sub_type ⇒ Object
Returns the value of attribute sub_type.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_other ⇒ Object
Returns the value of attribute type_other.
-
#year ⇒ Object
Returns the value of attribute year.
Attributes inherited from BaseEntity
Instance Method Summary collapse
- #active? ⇒ Boolean
- #open_for_fast_registration? ⇒ Boolean
- #open_for_registration? ⇒ Boolean
- #past? ⇒ Boolean
- #venue_virtual? ⇒ Boolean
- #virtual? ⇒ Boolean
Methods inherited from Event
Methods included from VenueConcern
Methods included from FundraisingPageConcern
Methods included from EventYearConcern
Methods included from DonationRecipientConcern
Methods included from Entities::Cacheable
Methods inherited from TopLevelEntity
_endpoint, action, actions, blacklist_action, class_action, define_endpoint, endpoint, #endpoint, instance_action
Methods inherited from BaseEntity
allow_instantiation?, attr_accessor, attr_reader, attr_writer, collection_attributes, defined_attributes, #destroyed?, #dirty_data, entity_attr_accessor, entity_attr_reader, entity_attr_writer, entity_attributes, entity_collection_attr_accessor, entity_collection_attr_reader, entity_collection_attr_writer, #error, inherited, #initialize, #keys_hash, #model_name, multitype_attr_accessor, multitype_attr_reader, multitype_attr_writer, multitype_collection_attr_accessor, multitype_collection_attr_reader, multitype_collection_attr_writer, #not_provided_attributes, optional_attributes, #persisted?, #reload!, #reload_recursive, #rollback!, #to_hash, #to_json, #to_partial
Methods included from EntityResponseConcern
#add_errors, #data, #error?, #errors?, #errors_http_code=, #http_code, #success?
Constructor Details
This class inherits a constructor from SBF::Client::BaseEntity
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
186 187 188 |
# File 'lib/stbaldricks/entities/event.rb', line 186 def created_at @created_at end |
#date ⇒ Object
Returns the value of attribute date.
169 170 171 |
# File 'lib/stbaldricks/entities/event.rb', line 169 def date @date end |
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
163 164 165 |
# File 'lib/stbaldricks/entities/event.rb', line 163 def display_name @display_name end |
#end_time ⇒ Object
Returns the value of attribute end_time.
170 171 172 |
# File 'lib/stbaldricks/entities/event.rb', line 170 def end_time @end_time end |
#event_title ⇒ Object
Returns the value of attribute event_title.
164 165 166 |
# File 'lib/stbaldricks/entities/event.rb', line 164 def event_title @event_title end |
#fund_relationship_type ⇒ Object
Returns the value of attribute fund_relationship_type.
197 198 199 |
# File 'lib/stbaldricks/entities/event.rb', line 197 def fund_relationship_type @fund_relationship_type end |
#fundraising_goal ⇒ Object
Returns the value of attribute fundraising_goal.
173 174 175 |
# File 'lib/stbaldricks/entities/event.rb', line 173 def fundraising_goal @fundraising_goal end |
#fundraising_message ⇒ Object
Returns the value of attribute fundraising_message.
173 174 175 |
# File 'lib/stbaldricks/entities/event.rb', line 173 def @fundraising_message end |
#how_created ⇒ Object
Returns the value of attribute how_created.
188 189 190 |
# File 'lib/stbaldricks/entities/event.rb', line 188 def how_created @how_created end |
#id ⇒ Object
Returns the value of attribute id.
161 162 163 |
# File 'lib/stbaldricks/entities/event.rb', line 161 def id @id end |
#is_date_confirmed ⇒ Object
Returns the value of attribute is_date_confirmed.
169 170 171 |
# File 'lib/stbaldricks/entities/event.rb', line 169 def is_date_confirmed @is_date_confirmed end |
#is_open_for_fast_registration ⇒ Object
Returns the value of attribute is_open_for_fast_registration.
171 172 173 |
# File 'lib/stbaldricks/entities/event.rb', line 171 def is_open_for_fast_registration @is_open_for_fast_registration end |
#is_open_for_registration ⇒ Object
Returns the value of attribute is_open_for_registration.
171 172 173 |
# File 'lib/stbaldricks/entities/event.rb', line 171 def is_open_for_registration @is_open_for_registration end |
#is_private ⇒ Object
Returns the value of attribute is_private.
168 169 170 |
# File 'lib/stbaldricks/entities/event.rb', line 168 def is_private @is_private end |
#is_time_confirmed ⇒ Object
Returns the value of attribute is_time_confirmed.
170 171 172 |
# File 'lib/stbaldricks/entities/event.rb', line 170 def is_time_confirmed @is_time_confirmed end |
#modified_at ⇒ Object (readonly)
Returns the value of attribute modified_at.
186 187 188 |
# File 'lib/stbaldricks/entities/event.rb', line 186 def modified_at @modified_at end |
#modified_by ⇒ Object
Returns the value of attribute modified_by.
187 188 189 |
# File 'lib/stbaldricks/entities/event.rb', line 187 def modified_by @modified_by end |
#offline_donation_form ⇒ Object
Returns the value of attribute offline_donation_form.
172 173 174 |
# File 'lib/stbaldricks/entities/event.rb', line 172 def offline_donation_form @offline_donation_form end |
#offline_donation_uuid ⇒ Object
Returns the value of attribute offline_donation_uuid.
172 173 174 |
# File 'lib/stbaldricks/entities/event.rb', line 172 def offline_donation_uuid @offline_donation_uuid end |
#promotional_code ⇒ Object
Returns the value of attribute promotional_code.
189 190 191 |
# File 'lib/stbaldricks/entities/event.rb', line 189 def promotional_code @promotional_code end |
#start_time ⇒ Object
Returns the value of attribute start_time.
170 171 172 |
# File 'lib/stbaldricks/entities/event.rb', line 170 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
162 163 164 |
# File 'lib/stbaldricks/entities/event.rb', line 162 def status @status end |
#sub_type ⇒ Object
Returns the value of attribute sub_type.
167 168 169 |
# File 'lib/stbaldricks/entities/event.rb', line 167 def sub_type @sub_type end |
#type ⇒ Object
Returns the value of attribute type.
165 166 167 |
# File 'lib/stbaldricks/entities/event.rb', line 165 def type @type end |
#type_other ⇒ Object
Returns the value of attribute type_other.
166 167 168 |
# File 'lib/stbaldricks/entities/event.rb', line 166 def type_other @type_other end |
#year ⇒ Object
Returns the value of attribute year.
161 162 163 |
# File 'lib/stbaldricks/entities/event.rb', line 161 def year @year end |
Instance Method Details
#active? ⇒ Boolean
199 200 201 |
# File 'lib/stbaldricks/entities/event.rb', line 199 def active? status == SBF::Client::Event::Status::ACTIVE end |
#open_for_fast_registration? ⇒ Boolean
216 217 218 |
# File 'lib/stbaldricks/entities/event.rb', line 216 def open_for_fast_registration? is_open_for_fast_registration end |
#open_for_registration? ⇒ Boolean
212 213 214 |
# File 'lib/stbaldricks/entities/event.rb', line 212 def open_for_registration? is_open_for_registration end |
#past? ⇒ Boolean
220 221 222 223 224 |
# File 'lib/stbaldricks/entities/event.rb', line 220 def past? Date.today > Date.parse(date) rescue nil end |