Class: KalibroClient::Entities::Processor::KalibroModule

Inherits:
Base
  • Object
show all
Defined in:
lib/kalibro_client/entities/processor/kalibro_module.rb

Instance Attribute Summary collapse

Attributes included from DateAttributes

#created_at, #updated_at

Attributes inherited from Base

#kalibro_errors, #persisted

Instance Method Summary collapse

Methods inherited from Base

address

Methods inherited from Base

#==, create, create_array_from_hash, create_objects_array_from_hash, #destroy, exists?, find, #initialize, request, #save, #save!, #to_hash, to_object, to_objects_array, #update

Methods included from RequestMethods::ClassMethods

#exists_action, #find_action, #id_params

Methods included from HashConverters

#convert_to_hash, #date_with_milliseconds, #field_to_hash

Methods included from XMLConverters

#get_xml, #xml_instance_class_name

Methods included from RequestMethods

#destroy_action, #destroy_params, #destroy_prefix, #save_action, #save_params, #save_prefix, #update_params, #update_prefix

Constructor Details

This class inherits a constructor from KalibroClient::Entities::Base

Instance Attribute Details

#granlrtyObject Also known as: granularity

Returns the value of attribute granlrty.



22
23
24
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 22

def granlrty
  @granlrty
end

#idObject

Returns the value of attribute id.



22
23
24
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 22

def id
  @id
end

#long_nameObject

Returns the value of attribute long_name.



22
23
24
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 22

def long_name
  @long_name
end

#module_result_idObject

Returns the value of attribute module_result_id.



22
23
24
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 22

def module_result_id
  @module_result_id
end

Instance Method Details

#nameObject



29
30
31
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 29

def name
  @long_name.split('.')
end

#name=(value) ⇒ Object



25
26
27
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 25

def name=(value)
  @long_name = (value.is_a?(Array) ? value.join('.') : value)
end

#short_nameObject



33
34
35
# File 'lib/kalibro_client/entities/processor/kalibro_module.rb', line 33

def short_name
  name.last
end