Class: Pupa::Motion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#classificationObject

Returns the value of attribute classification.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def classification
  @classification
end

#creator_idObject

Returns the value of attribute creator_id.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def creator_id
  @creator_id
end

#dateObject

Returns the value of attribute date.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def date
  @date
end

#legislative_session_idObject

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_idObject

Returns the value of attribute organization_id.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def organization_id
  @organization_id
end

#requirementObject

Returns the value of attribute requirement.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def requirement
  @requirement
end

#resultObject

Returns the value of attribute result.



11
12
13
# File 'lib/pupa/models/motion.rb', line 11

def result
  @result
end

#textObject

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_sString

Returns the motion's text and organization ID.

Returns:

  • (String)

    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