Class: MercadoPublicoCl::TenderDates
- Inherits:
-
Data
- Object
- Data
- MercadoPublicoCl::TenderDates
- Defined in:
- lib/mercado_publico_cl/value_objects/tender_dates.rb
Instance Attribute Summary collapse
-
#award ⇒ Object
readonly
Returns the value of attribute award.
-
#closing ⇒ Object
readonly
Returns the value of attribute closing.
-
#creation ⇒ Object
readonly
Returns the value of attribute creation.
-
#documents_delivery ⇒ Object
readonly
Returns the value of attribute documents_delivery.
-
#economic_opening ⇒ Object
readonly
Returns the value of attribute economic_opening.
-
#estimated_award ⇒ Object
readonly
Returns the value of attribute estimated_award.
-
#estimated_signing ⇒ Object
readonly
Returns the value of attribute estimated_signing.
-
#evaluation_time ⇒ Object
readonly
Returns the value of attribute evaluation_time.
-
#final ⇒ Object
readonly
Returns the value of attribute final.
-
#physical_support ⇒ Object
readonly
Returns the value of attribute physical_support.
-
#publication ⇒ Object
readonly
Returns the value of attribute publication.
-
#questions_publication ⇒ Object
readonly
Returns the value of attribute questions_publication.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#site_visit ⇒ Object
readonly
Returns the value of attribute site_visit.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#technical_opening ⇒ Object
readonly
Returns the value of attribute technical_opening.
-
#user_dates ⇒ Object
readonly
Returns the value of attribute user_dates.
Class Method Summary collapse
Instance Method Summary collapse
- #inspect ⇒ Object (also: #to_s)
Instance Attribute Details
#award ⇒ Object (readonly)
Returns the value of attribute award
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def award @award end |
#closing ⇒ Object (readonly)
Returns the value of attribute closing
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def closing @closing end |
#creation ⇒ Object (readonly)
Returns the value of attribute creation
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def creation @creation end |
#documents_delivery ⇒ Object (readonly)
Returns the value of attribute documents_delivery
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def documents_delivery @documents_delivery end |
#economic_opening ⇒ Object (readonly)
Returns the value of attribute economic_opening
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def economic_opening @economic_opening end |
#estimated_award ⇒ Object (readonly)
Returns the value of attribute estimated_award
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def estimated_award @estimated_award end |
#estimated_signing ⇒ Object (readonly)
Returns the value of attribute estimated_signing
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def estimated_signing @estimated_signing end |
#evaluation_time ⇒ Object (readonly)
Returns the value of attribute evaluation_time
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def evaluation_time @evaluation_time end |
#final ⇒ Object (readonly)
Returns the value of attribute final
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def final @final end |
#physical_support ⇒ Object (readonly)
Returns the value of attribute physical_support
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def physical_support @physical_support end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def publication @publication end |
#questions_publication ⇒ Object (readonly)
Returns the value of attribute questions_publication
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def questions_publication @questions_publication end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def raw @raw end |
#site_visit ⇒ Object (readonly)
Returns the value of attribute site_visit
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def site_visit @site_visit end |
#start ⇒ Object (readonly)
Returns the value of attribute start
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def start @start end |
#technical_opening ⇒ Object (readonly)
Returns the value of attribute technical_opening
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def technical_opening @technical_opening end |
#user_dates ⇒ Object (readonly)
Returns the value of attribute user_dates
4 5 6 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 4 def user_dates @user_dates end |
Class Method Details
.from_payload(raw) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 23 def self.from_payload(raw) return nil if raw.nil? || raw.empty? new( creation: Resources::Base.parse_date(raw["FechaCreacion"]), closing: Resources::Base.parse_date(raw["FechaCierre"]), start: Resources::Base.parse_date(raw["FechaInicio"]), final: Resources::Base.parse_date(raw["FechaFinal"]), questions_publication: Resources::Base.parse_date(raw["FechaPubRespuestas"]), technical_opening: Resources::Base.parse_date(raw["FechaActoAperturaTecnica"]), economic_opening: Resources::Base.parse_date(raw["FechaActoAperturaEconomica"]), publication: Resources::Base.parse_date(raw["FechaPublicacion"]), award: Resources::Base.parse_date(raw["FechaAdjudicacion"]), estimated_award: Resources::Base.parse_date(raw["FechaEstimadaAdjudicacion"]), physical_support: Resources::Base.parse_date(raw["FechaSoporteFisico"]), evaluation_time: Resources::Base.parse_date(raw["FechaTiempoEvaluacion"]), estimated_signing: Resources::Base.parse_date(raw["FechaEstimadaFirma"]), site_visit: Resources::Base.parse_date(raw["FechaVisitaTerreno"]), documents_delivery: Resources::Base.parse_date(raw["FechaEntregaAntecedentes"]), user_dates: raw["FechasUsuario"], raw: raw ) end |
Instance Method Details
#inspect ⇒ Object Also known as: to_s
47 48 49 |
# File 'lib/mercado_publico_cl/value_objects/tender_dates.rb', line 47 def inspect "#<TenderDates publication=#{publication} closing=#{closing} award=#{award}>" end |