Sha256: 41bb117420ccb21eb2e58bbc0622f3a222fb61818b83d8ff0ca6243f77c9fbf0

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

class Subscription
  include Ripple::Document

  class MyCustomType
    attr_accessor :foo

    def initialize(foo)
      self.foo = foo
    end

    def as_json(options = {})
      foo
    end

    def self.ripple_cast(value)
      new(value)
    end

    def ==(other)
      other.foo == foo
    end
  end

  property :days_of_month, Set
  property :custom_data, MyCustomType
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seomoz-ripple-1.0.0.pre spec/support/models/subscription.rb