Module: Eco::API::Session::Batch::Feedback::Getters
- Included in:
- Eco::API::Session::Batch::Feedback
- Defined in:
- lib/eco/api/session/batch/feedback/getters.rb
Instance Method Summary collapse
Instance Method Details
#get_attr(entry, attr) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/eco/api/session/batch/feedback/getters.rb', line 7 def get_attr(entry, attr) if entry.respond_to?(attr.to_sym) entry.public_send(attr.to_sym) elsif entry.is_a?(Hash) entry[attr_to_s] end end |
#get_row(value) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/eco/api/session/batch/feedback/getters.rb', line 15 def get_row(value) case value when Eco::API::Common::People::PersonEntry value.idx when Ecoportal::API::V1::Person get_row(value.entry) end end |