Class: SBF::Client::FullEvent

Inherits:
Event show all
Defined in:
lib/stbaldricks/entities/event.rb

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

BaseEntity::ELSE

Instance Attribute Summary collapse

Attributes inherited from BaseEntity

#errors

Instance Method Summary collapse

Methods inherited from Event

#update

Methods included from Entities::Cacheable

#cache_id, included

Methods inherited from TopLevelEntity

_endpoint, action, actions, blacklist_action, class_action, define_endpoint, endpoint, #endpoint, instance_action

Methods inherited from BaseEntity

#add_errors, allow_instantiation?, attr_accessor, attr_reader, attr_writer, attributes, #attributes=, collection_attributes, entity_attr_accessor, entity_attr_reader, entity_attr_writer, entity_attributes, entity_collection_attr_accessor, entity_collection_attr_reader, entity_collection_attr_writer, inherited, #initialize, #keys_data, #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, #update_data

Constructor Details

This class inherits a constructor from SBF::Client::BaseEntity

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



141
142
143
# File 'lib/stbaldricks/entities/event.rb', line 141

def created_at
  @created_at
end

#dateObject

Returns the value of attribute date.



124
125
126
# File 'lib/stbaldricks/entities/event.rb', line 124

def date
  @date
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



119
120
121
# File 'lib/stbaldricks/entities/event.rb', line 119

def display_name
  @display_name
end

#end_timeObject

Returns the value of attribute end_time.



125
126
127
# File 'lib/stbaldricks/entities/event.rb', line 125

def end_time
  @end_time
end

#event_titleObject

Returns the value of attribute event_title.



120
121
122
# File 'lib/stbaldricks/entities/event.rb', line 120

def event_title
  @event_title
end

#fundraising_goalObject

Returns the value of attribute fundraising_goal.



128
129
130
# File 'lib/stbaldricks/entities/event.rb', line 128

def fundraising_goal
  @fundraising_goal
end

#fundraising_messageObject

Returns the value of attribute fundraising_message.



128
129
130
# File 'lib/stbaldricks/entities/event.rb', line 128

def fundraising_message
  @fundraising_message
end

#how_createdObject

Returns the value of attribute how_created.



143
144
145
# File 'lib/stbaldricks/entities/event.rb', line 143

def how_created
  @how_created
end

#idObject

Returns the value of attribute id.



117
118
119
# File 'lib/stbaldricks/entities/event.rb', line 117

def id
  @id
end

#is_date_confirmedObject

Returns the value of attribute is_date_confirmed.



124
125
126
# File 'lib/stbaldricks/entities/event.rb', line 124

def is_date_confirmed
  @is_date_confirmed
end

#is_open_for_fast_registrationObject

Returns the value of attribute is_open_for_fast_registration.



126
127
128
# File 'lib/stbaldricks/entities/event.rb', line 126

def is_open_for_fast_registration
  @is_open_for_fast_registration
end

#is_open_for_registrationObject

Returns the value of attribute is_open_for_registration.



126
127
128
# File 'lib/stbaldricks/entities/event.rb', line 126

def is_open_for_registration
  @is_open_for_registration
end

#is_privateObject

Returns the value of attribute is_private.



123
124
125
# File 'lib/stbaldricks/entities/event.rb', line 123

def is_private
  @is_private
end

#is_time_confirmedObject

Returns the value of attribute is_time_confirmed.



125
126
127
# File 'lib/stbaldricks/entities/event.rb', line 125

def is_time_confirmed
  @is_time_confirmed
end

#modified_atObject (readonly)

Returns the value of attribute modified_at.



141
142
143
# File 'lib/stbaldricks/entities/event.rb', line 141

def modified_at
  @modified_at
end

#modified_byObject

Returns the value of attribute modified_by.



142
143
144
# File 'lib/stbaldricks/entities/event.rb', line 142

def modified_by
  @modified_by
end

#offline_donation_formObject

Returns the value of attribute offline_donation_form.



127
128
129
# File 'lib/stbaldricks/entities/event.rb', line 127

def offline_donation_form
  @offline_donation_form
end

#offline_donation_uuidObject

Returns the value of attribute offline_donation_uuid.



127
128
129
# File 'lib/stbaldricks/entities/event.rb', line 127

def offline_donation_uuid
  @offline_donation_uuid
end

#promotional_codeObject

Returns the value of attribute promotional_code.



144
145
146
# File 'lib/stbaldricks/entities/event.rb', line 144

def promotional_code
  @promotional_code
end

#start_timeObject

Returns the value of attribute start_time.



125
126
127
# File 'lib/stbaldricks/entities/event.rb', line 125

def start_time
  @start_time
end

#statusObject

Returns the value of attribute status.



118
119
120
# File 'lib/stbaldricks/entities/event.rb', line 118

def status
  @status
end

#sub_typeObject

Returns the value of attribute sub_type.



122
123
124
# File 'lib/stbaldricks/entities/event.rb', line 122

def sub_type
  @sub_type
end

#typeObject

Returns the value of attribute type.



121
122
123
# File 'lib/stbaldricks/entities/event.rb', line 121

def type
  @type
end

#yearObject

Returns the value of attribute year.



117
118
119
# File 'lib/stbaldricks/entities/event.rb', line 117

def year
  @year
end

Instance Method Details

#active?Boolean

Returns:



152
153
154
# File 'lib/stbaldricks/entities/event.rb', line 152

def active?
  status == SBF::Client::Event::Status::ACTIVE
end

#open_for_fast_registration?Boolean

Returns:



164
165
166
# File 'lib/stbaldricks/entities/event.rb', line 164

def open_for_fast_registration?
  is_open_for_fast_registration
end

#open_for_registration?Boolean

Returns:



160
161
162
# File 'lib/stbaldricks/entities/event.rb', line 160

def open_for_registration?
  is_open_for_registration
end

#virtual?Boolean

Returns:



156
157
158
# File 'lib/stbaldricks/entities/event.rb', line 156

def virtual?
  (id == 1) && (sub_type == SBF::Client::Event::SubType::VIRTUAL)
end