Sha256: 3f0972f970b1f2e52db6af9123d8cc3e37d1700fd8b9523fa1c2268fb27682f3

Contents?: true

Size: 374 Bytes

Versions: 24

Compression:

Stored size: 374 Bytes

Contents

$:.push 'examples'; require 'helper'

class Customer < RestModel
  property :periodicity, values: {1 => "c_53", 2 => "c_z1"}
  property :company,     values: {"amazon" => "AM", "google" => "GOOG"}
  property :type,        values: {simple: "1", complex: "2"}
end

@root = Customer.from_source!(periodicity: 'c_53', company: "GOOG", type: "2").first
inspect_rest_model(@root)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rest_model-0.3.1 examples/properties/with_values.rb
rest_model-0.3.0 examples/properties/with_values.rb
rest_model-0.2.3 examples/properties/with_values.rb
rest_model-0.2.1 examples/properties/with_values.rb
rest_model-0.2.0 examples/properties/with_values.rb
rest_model-0.1.24 examples/properties/with_values.rb
rest_model-0.1.23 examples/properties/with_values.rb
rest_model-0.1.22 examples/properties/with_values.rb
rest_model-0.1.21 examples/properties/with_values.rb
rest_model-0.1.20 examples/properties/with_values.rb
rest_model-0.1.19 examples/properties/with_values.rb
rest_model-0.1.18 examples/properties/with_values.rb
rest_model-0.1.17 examples/properties/with_values.rb
rest_model-0.1.16 examples/properties/with_values.rb
rest_model-0.1.15 examples/properties/with_values.rb
rest_model-0.1.14 examples/properties/with_values.rb
rest_model-0.1.13 examples/properties/with_values.rb
rest_model-0.1.12 examples/properties/with_values.rb
rest_model-0.1.11 examples/properties/with_values.rb
rest_model-0.1.10 examples/properties/with_values.rb