Class: SBF::Client::Fund::YearlyTotals
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- SBF::Client::Fund::YearlyTotals
- Defined in:
- lib/stbaldricks/entities/fund.rb
Constant Summary
Constants inherited from BaseEntity
Instance Attribute Summary collapse
-
#amount_raised ⇒ Object
readonly
Returns the value of attribute amount_raised.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#fundraisers ⇒ Object
readonly
Returns the value of attribute fundraisers.
-
#non_shavees ⇒ Object
readonly
Returns the value of attribute non_shavees.
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
-
#shavees ⇒ Object
readonly
Returns the value of attribute shavees.
-
#teams ⇒ Object
readonly
Returns the value of attribute teams.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Attributes inherited from BaseEntity
Instance Method Summary collapse
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, #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?, #to_json
Constructor Details
This class inherits a constructor from SBF::Client::BaseEntity
Instance Attribute Details
#amount_raised ⇒ Object (readonly)
Returns the value of attribute amount_raised.
31 32 33 |
# File 'lib/stbaldricks/entities/fund.rb', line 31 def amount_raised @amount_raised end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
30 31 32 |
# File 'lib/stbaldricks/entities/fund.rb', line 30 def events @events end |
#fundraisers ⇒ Object (readonly)
Returns the value of attribute fundraisers.
25 26 27 |
# File 'lib/stbaldricks/entities/fund.rb', line 25 def fundraisers @fundraisers end |
#non_shavees ⇒ Object (readonly)
Returns the value of attribute non_shavees.
28 29 30 |
# File 'lib/stbaldricks/entities/fund.rb', line 28 def non_shavees @non_shavees end |
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
26 27 28 |
# File 'lib/stbaldricks/entities/fund.rb', line 26 def participants @participants end |
#shavees ⇒ Object (readonly)
Returns the value of attribute shavees.
27 28 29 |
# File 'lib/stbaldricks/entities/fund.rb', line 27 def shavees @shavees end |
#teams ⇒ Object (readonly)
Returns the value of attribute teams.
29 30 31 |
# File 'lib/stbaldricks/entities/fund.rb', line 29 def teams @teams end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
24 25 26 |
# File 'lib/stbaldricks/entities/fund.rb', line 24 def year @year end |
Instance Method Details
#to_hash ⇒ Object
33 34 35 36 37 |
# File 'lib/stbaldricks/entities/fund.rb', line 33 def to_hash {}.tap do |hsh| self.class.attributes.each { |name| hsh[name] = send(name.to_sym) unless name.to_sym == :year } end end |