Sha256: 6c086c2779b2262e55fcf09e7e961bc4a1efc8bdb11654c143bb09252f0c665d

Contents?: true

Size: 350 Bytes

Versions: 23

Compression:

Stored size: 350 Bytes

Contents

#
#  Attribute model.
#
module Restful
  module ApiModel
    class Attribute
      attr_accessor :name, :value, :type, :extended_type
      
      def initialize(name, value, extended_type)
        self.name = name
        self.value = value
        self.extended_type = extended_type
        self.type = :simple_attribute
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
purzelrakete-restful-0.2.8 lib/restful/apimodel/attribute.rb
purzelrakete-restful-0.2.9 lib/restful/apimodel/attribute.rb
restful-0.2.20 lib/restful/apimodel/attribute.rb