Class: Treaty::Entity::Info::Builder
- Inherits:
-
Object
- Object
- Treaty::Entity::Info::Builder
- Defined in:
- lib/treaty/entity/info/builder.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/treaty/entity/info/builder.rb', line 7 def attributes @attributes end |
Class Method Details
.build ⇒ Object
9 10 11 |
# File 'lib/treaty/entity/info/builder.rb', line 9 def self.build(...) new.build(...) end |
Instance Method Details
#build(collection_of_attributes:) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/treaty/entity/info/builder.rb', line 13 def build(collection_of_attributes:) build_all( attributes: collection_of_attributes ) self end |