Class: Properties::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, kind, is_collection) ⇒ Property

Returns a new instance of Property.



7
8
9
10
11
# File 'lib/properties.rb', line 7

def initialize name, kind, is_collection
  @name = name
  @kind = kind
  @is_collection = is_collection
end

Instance Attribute Details

#is_collectionObject (readonly)

Returns the value of attribute is_collection.



5
6
7
# File 'lib/properties.rb', line 5

def is_collection
  @is_collection
end

#kindObject (readonly)

Returns the value of attribute kind.



5
6
7
# File 'lib/properties.rb', line 5

def kind
  @kind
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/properties.rb', line 5

def name
  @name
end