Class: Moxml::Signature::Model::Transforms

Inherits:
Object
  • Object
show all
Defined in:
lib/moxml/signature/model/transforms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transforms: []) ⇒ Transforms

Returns a new instance of Transforms.



9
10
11
# File 'lib/moxml/signature/model/transforms.rb', line 9

def initialize(transforms: [])
  @transforms = Array(transforms)
end

Instance Attribute Details

#transformsObject

Returns the value of attribute transforms.



7
8
9
# File 'lib/moxml/signature/model/transforms.rb', line 7

def transforms
  @transforms
end

Instance Method Details

#<<(transform) ⇒ Object



13
14
15
16
# File 'lib/moxml/signature/model/transforms.rb', line 13

def <<(transform)
  @transforms << transform
  self
end

#each(&block) ⇒ Object



18
19
20
# File 'lib/moxml/signature/model/transforms.rb', line 18

def each(&block)
  @transforms.each(&block)
end

#empty?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/moxml/signature/model/transforms.rb', line 22

def empty?
  @transforms.empty?
end

#lengthObject



30
31
32
# File 'lib/moxml/signature/model/transforms.rb', line 30

def length
  @transforms.size
end

#sizeObject



26
27
28
# File 'lib/moxml/signature/model/transforms.rb', line 26

def size
  @transforms.size
end