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
allow_instantiation?, attr_accessor, attr_reader, attr_writer, attributes, collection_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_json
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
#amount_raised ⇒ Object (readonly)
Returns the value of attribute amount_raised.
35 36 37 |
# File 'lib/stbaldricks/entities/fund.rb', line 35 def amount_raised @amount_raised end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
34 35 36 |
# File 'lib/stbaldricks/entities/fund.rb', line 34 def events @events end |
#fundraisers ⇒ Object (readonly)
Returns the value of attribute fundraisers.
29 30 31 |
# File 'lib/stbaldricks/entities/fund.rb', line 29 def fundraisers @fundraisers end |
#non_shavees ⇒ Object (readonly)
Returns the value of attribute non_shavees.
32 33 34 |
# File 'lib/stbaldricks/entities/fund.rb', line 32 def non_shavees @non_shavees end |
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
30 31 32 |
# File 'lib/stbaldricks/entities/fund.rb', line 30 def participants @participants end |
#shavees ⇒ Object (readonly)
Returns the value of attribute shavees.
31 32 33 |
# File 'lib/stbaldricks/entities/fund.rb', line 31 def shavees @shavees end |
#teams ⇒ Object (readonly)
Returns the value of attribute teams.
33 34 35 |
# File 'lib/stbaldricks/entities/fund.rb', line 33 def teams @teams end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
28 29 30 |
# File 'lib/stbaldricks/entities/fund.rb', line 28 def year @year end |
Instance Method Details
#to_hash ⇒ Object
37 38 39 40 41 |
# File 'lib/stbaldricks/entities/fund.rb', line 37 def to_hash {}.tap do |hsh| self.class.attributes.each { |name| hsh[name] = send(name.to_sym) unless name.to_sym == :year } end end |