Class: Nylas::Model::AttributeDefinition
- Inherits:
-
Object
- Object
- Nylas::Model::AttributeDefinition
- Extended by:
- Forwardable
- Defined in:
- lib/nylas/model/attribute_definition.rb
Overview
Define a particular attribute for a given model
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#read_only ⇒ Object
Returns the value of attribute read_only.
-
#type_name ⇒ Object
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(type_name:, read_only:, default:) ⇒ AttributeDefinition
constructor
A new instance of AttributeDefinition.
Constructor Details
#initialize(type_name:, read_only:, default:) ⇒ AttributeDefinition
Returns a new instance of AttributeDefinition.
11 12 13 14 15 |
# File 'lib/nylas/model/attribute_definition.rb', line 11 def initialize(type_name:, read_only:, default:) self.type_name = type_name self.read_only = read_only self.default = default end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
9 10 11 |
# File 'lib/nylas/model/attribute_definition.rb', line 9 def default @default end |
#read_only ⇒ Object
Returns the value of attribute read_only.
9 10 11 |
# File 'lib/nylas/model/attribute_definition.rb', line 9 def read_only @read_only end |
#type_name ⇒ Object
Returns the value of attribute type_name.
9 10 11 |
# File 'lib/nylas/model/attribute_definition.rb', line 9 def type_name @type_name end |