Class: MoexDictionaryObjects::Duration

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

Overview

Moex duration from api

Examples:

Params

{ external_id: "60",
  data: { "interval": 1, "duration": 60, "days": null, "title": "минута", "hint": "" } }

See Also:

Instance Method Summary collapse

Instance Method Details

#internal_nameString

Name used in api

Returns:

  • (String)

    name for api


38
39
40
# File 'app/models/moex_dictionary_objects/duration.rb', line 38

def internal_name
  data_duration
end

#public_nameString

Name used in interfaces

Returns:

  • (String)

    public name


44
45
46
# File 'app/models/moex_dictionary_objects/duration.rb', line 44

def public_name
  data_title
end