Class: Treaty::Entity::Info::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/treaty/entity/info/builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject (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

.buildObject



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