Class: Proj::Parameter
- Inherits:
-
Object
- Object
- Proj::Parameter
- Defined in:
- lib/proj/parameter.rb
Instance Attribute Summary collapse
-
#auth_name ⇒ String
readonly
Authority name.
-
#code ⇒ String
readonly
Authority code.
-
#name ⇒ String
readonly
Param name.
-
#unit_conv_factor ⇒ String
readonly
Param unit_conv_factor.
-
#unit_name ⇒ String
readonly
Param unit_name.
-
#unit_type ⇒ Object
readonly
Returns the value of attribute unit_type.
-
#value ⇒ String
readonly
Param value.
Instance Method Summary collapse
-
#initialize(name:, auth_name: nil, code: nil, value:, unit_conv_factor:, unit_name: nil, unit_type:) ⇒ Parameter
constructor
A new instance of Parameter.
-
#to_description ⇒ PJ_PARAM_DESCRIPTION
Returns param information in PJ_PARAM_DESCRIPTION structure.
Constructor Details
#initialize(name:, auth_name: nil, code: nil, value:, unit_conv_factor:, unit_name: nil, unit_type:) ⇒ Parameter
Returns a new instance of Parameter.
20 21 22 23 24 25 26 27 28 |
# File 'lib/proj/parameter.rb', line 20 def initialize(name:, auth_name: nil, code: nil, value:, unit_conv_factor:, unit_name: nil, unit_type:) @name = name @auth_name = auth_name @code = code @value = value @unit_conv_factor = unit_conv_factor @unit_name = unit_name @unit_type = unit_type end |
Instance Attribute Details
#auth_name ⇒ String (readonly)
Returns Authority name.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
#code ⇒ String (readonly)
Returns Authority code.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
#name ⇒ String (readonly)
Returns Param name.
17 18 19 |
# File 'lib/proj/parameter.rb', line 17 def name @name end |
#unit_conv_factor ⇒ String (readonly)
Returns Param unit_conv_factor.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
#unit_name ⇒ String (readonly)
Returns Param unit_name.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
#unit_type ⇒ Object (readonly)
Returns the value of attribute unit_type.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
#value ⇒ String (readonly)
Returns Param value.
17 18 |
# File 'lib/proj/parameter.rb', line 17 attr_reader :name, :auth_name, :code, :value, :unit_conv_factor, :unit_name, :unit_type |
Instance Method Details
#to_description ⇒ PJ_PARAM_DESCRIPTION
Returns param information in PJ_PARAM_DESCRIPTION structure
33 34 35 36 |
# File 'lib/proj/parameter.rb', line 33 def to_description Api::PJ_PARAM_DESCRIPTION.create(name: name, auth_name: auth_name, code: code, value: value, unit_conv_factor: unit_conv_factor, unit_name: name, unit_type: unit_type) end |