Sha256: e16153d1ce3bff978b956b09d7ac86639fd888fb61d325ae20f00eb8a4c88e0f
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
module Amee module DataApi class DrillDown include ::Amee::Model self.path_prefix = "/data" # choices are an array of hashes with keys "value" and "name" # same for the selections as well attr_accessor :choice_name, :choices, :selections item_populators :data_category => {:class => Amee::DataApi::DataCategory} def data_item_uid if uid_found? choices.first["value"] rescue nil end end def uid_found? choice_name == "uid" end def lazy_loaded true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hookercookerman-amee-0.2.1 | lib/amee/data_api/drill_down.rb |
hookercookerman-amee-0.6.0 | lib/amee/data_api/drill_down.rb |