Sha256: ec0e0abc7f3bdc9a539d9f136e2dbf2323341e005a6296257636026b01763c2f

Contents?: true

Size: 785 Bytes

Versions: 15

Compression:

Stored size: 785 Bytes

Contents

module Neuron
  module Schema
    class GeoTarget
      include Common

      SCHEMA = self.new

      def index
        @@index ||=
        set_of(object_type("geo_target",
          :id => id,
          :abbreviation => nonnull_string,
          :full_name => nonnull_string,
          :geo_type => choice_of(Neuron::Client::GeoTarget::TYPES),
          :name => nonnull_string,
          :netacuity_id => integer
        ))
      end

      def show
        @@show ||=
        object_type("geo_target",
          :id => id,
          :abbreviation => nonnull_string,
          :full_name => nonnull_string,
          :geo_type => choice_of(Neuron::Client::GeoTarget::TYPES),
          :name => nonnull_string,
          :netacuity_id => integer
        )
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
neuron-client-0.6.0 lib/neuron-client/schema/geo_target.rb
neuron-client-0.5.3 lib/neuron-client/schema/geo_target.rb
neuron-client-0.5.2 lib/neuron-client/schema/geo_target.rb
neuron-client-0.5.1 lib/neuron-client/schema/geo_target.rb
neuron-client-0.5.0 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.8 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.7 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.6 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.5 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.4 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.3 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.2 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.1 lib/neuron-client/schema/geo_target.rb
neuron-client-0.4.0 lib/neuron-client/schema/geo_target.rb
neuron-client-0.3.0 lib/neuron-client/schema/geo_target.rb