Class: ApiTwister::ApiAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/api-twister/api_attribute.rb

Direct Known Subclasses

ApiMethod

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, data_type, description, required) ⇒ ApiAttribute

Returns a new instance of ApiAttribute.



5
6
7
8
9
10
# File 'lib/api-twister/api_attribute.rb', line 5

def initialize(name, data_type, description, required)
  @name = name
  @description = description
  @data_type = data_type
  @required = required
end

Instance Attribute Details

#data_typeObject

Returns the value of attribute data_type.



3
4
5
# File 'lib/api-twister/api_attribute.rb', line 3

def data_type
  @data_type
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/api-twister/api_attribute.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/api-twister/api_attribute.rb', line 3

def name
  @name
end

#requiredObject

Returns the value of attribute required.



3
4
5
# File 'lib/api-twister/api_attribute.rb', line 3

def required
  @required
end