Class: Nylas::Model::AttributeDefinition

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/nylas/model/attribute_definition.rb

Overview

Define a particular attribute for a given model

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject

Returns the value of attribute default.



9
10
11
# File 'lib/nylas/model/attribute_definition.rb', line 9

def default
  @default
end

#read_onlyObject

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_nameObject

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