Class: Copa::Action
- Inherits:
-
Object
- Object
- Copa::Action
- Defined in:
- lib/copa/action.rb
Instance Method Summary collapse
- #city ⇒ Object
-
#initialize(id) ⇒ Action
constructor
A new instance of Action.
- #justification ⇒ Object
- #price ⇒ Object
- #state ⇒ Object
- #type ⇒ Object
- #url ⇒ Object
Constructor Details
Instance Method Details
#city ⇒ Object
28 29 30 |
# File 'lib/copa/action.rb', line 28 def city # field "#parent-fieldname-municipio" end |
#justification ⇒ Object
16 17 18 |
# File 'lib/copa/action.rb', line 16 def justification field("#parent-fieldname-justificativa") end |
#price ⇒ Object
20 21 22 |
# File 'lib/copa/action.rb', line 20 def price field("#parent-fieldname-custo_estimado_por_lote") end |
#state ⇒ Object
24 25 26 |
# File 'lib/copa/action.rb', line 24 def state field "#parent-fieldname-uf" end |
#type ⇒ Object
12 13 14 |
# File 'lib/copa/action.rb', line 12 def type field("#parent-fieldname-tipo") end |
#url ⇒ Object
8 9 10 |
# File 'lib/copa/action.rb', line 8 def url "#{URL_BASE}/acoes/#{@id}" end |