Class: Pupa::Motion
- Inherits:
-
Object
- Object
- Pupa::Motion
- Includes:
- Concerns::Sourceable, Concerns::Timestamps, Model
- Defined in:
- lib/pupa/models/motion.rb
Overview
A formal step to introduce a matter for consideration by an organization.
Instance Attribute Summary collapse
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#creator_id ⇒ Object
Returns the value of attribute creator_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#legislative_session_id ⇒ Object
Returns the value of attribute legislative_session_id.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#requirement ⇒ Object
Returns the value of attribute requirement.
-
#result ⇒ Object
Returns the value of attribute result.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#to_s ⇒ String
Returns the motion's text and organization ID.
Methods included from Concerns::Sourceable
#add_source, #initialize, #sources=
Methods included from Model
#==, #[], #[]=, #_id=, #add_extra, #extras=, #fingerprint, #foreign_properties, #initialize, #to_h, #validate!
Instance Attribute Details
#classification ⇒ Object
Returns the value of attribute classification.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def classification @classification end |
#creator_id ⇒ Object
Returns the value of attribute creator_id.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def creator_id @creator_id end |
#date ⇒ Object
Returns the value of attribute date.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def date @date end |
#legislative_session_id ⇒ Object
Returns the value of attribute legislative_session_id.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def legislative_session_id @legislative_session_id end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def organization_id @organization_id end |
#requirement ⇒ Object
Returns the value of attribute requirement.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def requirement @requirement end |
#result ⇒ Object
Returns the value of attribute result.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def result @result end |
#text ⇒ Object
Returns the value of attribute text.
11 12 13 |
# File 'lib/pupa/models/motion.rb', line 11 def text @text end |
Instance Method Details
#to_s ⇒ String
Returns the motion's text and organization ID.
19 20 21 |
# File 'lib/pupa/models/motion.rb', line 19 def to_s "#{text} in #{organization_id}" end |