Class: Orias::Mandator

Inherits:
Base
  • Object
show all
Defined in:
lib/orias/mandator.rb

Overview

Dedicated to Orias mandators objects handling

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Mandator

Initialize an Orias::Mandator instance



8
9
10
11
12
13
# File 'lib/orias/mandator.rb', line 8

def initialize(attributes = {})
  @raw = attributes

  @siren = @raw.dig('siren')
  @denomination = @raw.dig('denomination')
end

Instance Attribute Details

#denominationObject

Returns the value of attribute denomination.



5
6
7
# File 'lib/orias/mandator.rb', line 5

def denomination
  @denomination
end

#rawObject

Returns the value of attribute raw.



5
6
7
# File 'lib/orias/mandator.rb', line 5

def raw
  @raw
end

#sirenObject

Returns the value of attribute siren.



5
6
7
# File 'lib/orias/mandator.rb', line 5

def siren
  @siren
end