Class: Trello::Schema::AttributeBuilder
- Inherits:
-
Object
- Object
- Trello::Schema::AttributeBuilder
- Defined in:
- lib/trello/schema/attribute_builder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(name, options) ⇒ AttributeBuilder
constructor
A new instance of AttributeBuilder.
Constructor Details
#initialize(name, options) ⇒ AttributeBuilder
Returns a new instance of AttributeBuilder.
12 13 14 15 |
# File 'lib/trello/schema/attribute_builder.rb', line 12 def initialize(name, ) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/trello/schema/attribute_builder.rb', line 10 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/trello/schema/attribute_builder.rb', line 10 def @options end |
Class Method Details
.build(name, options = {}) ⇒ Object
5 6 7 |
# File 'lib/trello/schema/attribute_builder.rb', line 5 def build(name, = {}) new(name, ).build end |
Instance Method Details
#build ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/trello/schema/attribute_builder.rb', line 17 def build attribute_class.new( name: name, options: , serializer: serializer ) end |