Sha256: 9cd65571760013918ca3051352bcb3b32d65d702b5ae0daea5a8798960bd2431

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

module Cadenero
  # JSON Serializaer for the Cadenero::V1::Account Model
  class AccountSerializer < ActiveModel::Serializer
    embed :ids
    attributes :id, :name, :subdomain, :authentication_token
    has_one :owner
    has_many :users
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cadenero-0.0.2.b8 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b7 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b6 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b5 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b4 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b3 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b2 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.b1 app/serializers/cadenero/account_serializer.rb