Module: Moneybird::Traits::AdministrationService

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#administration_idObject (readonly)

Returns the value of attribute administration_id.



4
5
6
# File 'lib/moneybird/traits/administration_service.rb', line 4

def administration_id
  @administration_id
end

#clientObject (readonly)

Returns the value of attribute client.



4
5
6
# File 'lib/moneybird/traits/administration_service.rb', line 4

def client
  @client
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/moneybird/traits/administration_service.rb', line 4

def options
  @options
end

#preloaded_dataObject (readonly)

Returns the value of attribute preloaded_data.



4
5
6
# File 'lib/moneybird/traits/administration_service.rb', line 4

def preloaded_data
  @preloaded_data
end

Instance Method Details

#initialize(client, administration_id, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/moneybird/traits/administration_service.rb', line 6

def initialize(client, administration_id, options = {})
  @client = client
  @administration_id = administration_id
  @preloaded_data = options.delete(:preloaded_data)
  @options = options
end