Class: MoexDictionaryObjects::Engine

Inherits:
MoexDictionaryObject
  • Object
show all
Defined in:
app/models/moex_dictionary_objects/engine.rb

Overview

Moex engine from api

Examples:

Params

{ external_id: "1", data: { "id": 1, "name": "stock", "title": "Фондовый рынок и рынок депозитов" } }

See Also:

Instance Method Summary collapse

Instance Method Details

#internal_nameString

Name used in api

Returns:

  • (String)

    name for api


37
38
39
# File 'app/models/moex_dictionary_objects/engine.rb', line 37

def internal_name
  data_name
end

#public_nameString

Name used in interfaces

Returns:

  • (String)

    public name


43
44
45
# File 'app/models/moex_dictionary_objects/engine.rb', line 43

def public_name
  data_title
end