Sha256: a9467a6f8b97058a625075270c17d0387c17eca400d472e9d1e0a009f9122088

Contents?: true

Size: 1020 Bytes

Versions: 17

Compression:

Stored size: 1020 Bytes

Contents

# frozen_string_literal: true

module Files
  class BundleRegistration
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # string - Registration cookie code
    def code
      @attributes[:code]
    end

    # string - Registrant name
    def name
      @attributes[:name]
    end

    # string - Registrant company name
    def company
      @attributes[:company]
    end

    # string - Registrant email address
    def email
      @attributes[:email]
    end

    # string - InboxRegistration cookie code, if there is an associated InboxRegistration
    def inbox_code
      @attributes[:inbox_code]
    end

    # int64 - Id of associated form field set
    def form_field_set_id
      @attributes[:form_field_set_id]
    end

    # string - Data for form field set with form field ids as keys and user data as values
    def form_field_data
      @attributes[:form_field_data]
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
files.com-1.0.144 lib/files.com/models/bundle_registration.rb
files.com-1.0.143 lib/files.com/models/bundle_registration.rb
files.com-1.0.142 lib/files.com/models/bundle_registration.rb
files.com-1.0.141 lib/files.com/models/bundle_registration.rb
files.com-1.0.140 lib/files.com/models/bundle_registration.rb
files.com-1.0.139 lib/files.com/models/bundle_registration.rb
files.com-1.0.138 lib/files.com/models/bundle_registration.rb
files.com-1.0.137 lib/files.com/models/bundle_registration.rb
files.com-1.0.136 lib/files.com/models/bundle_registration.rb
files.com-1.0.135 lib/files.com/models/bundle_registration.rb
files.com-1.0.134 lib/files.com/models/bundle_registration.rb
files.com-1.0.133 lib/files.com/models/bundle_registration.rb
files.com-1.0.132 lib/files.com/models/bundle_registration.rb
files.com-1.0.131 lib/files.com/models/bundle_registration.rb
files.com-1.0.130 lib/files.com/models/bundle_registration.rb
files.com-1.0.129 lib/files.com/models/bundle_registration.rb
files.com-1.0.128 lib/files.com/models/bundle_registration.rb