Class: StrawberryAPI::CustomMetadataField
- Inherits:
- 
      Object
      
        - Object
- StrawberryAPI::CustomMetadataField
 
- Defined in:
- lib/strawberry_api/custom_metadata/custom_metadata_field.rb
Instance Attribute Summary collapse
- 
  
    
      #custom_metadata_set_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute custom_metadata_set_id. 
- 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute id. 
- 
  
    
      #mandatory  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute mandatory. 
- 
  
    
      #maxlen  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute maxlen. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #pattern  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute pattern. 
- 
  
    
      #position  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute position. 
- 
  
    
      #restriction  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute restriction. 
- 
  
    
      #select_field_options  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute select_field_options. 
- 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute type. 
- 
  
    
      #use_in_project_name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute use_in_project_name. 
Instance Method Summary collapse
- 
  
    
      #initialize(params = {})  ⇒ CustomMetadataField 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CustomMetadataField. 
Constructor Details
#initialize(params = {}) ⇒ CustomMetadataField
Returns a new instance of CustomMetadataField.
| 17 18 19 20 21 22 23 24 25 26 27 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 17 def initialize(params = {}) params.each do |k, v| if k == 'select_field_options' v.map! do || CustomMetadataOption.new() end end instance_variable_set("@#{k}", v) unless v.nil? end end | 
Instance Attribute Details
#custom_metadata_set_id ⇒ Object
Returns the value of attribute custom_metadata_set_id.
| 11 12 13 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 11 def @custom_metadata_set_id end | 
#id ⇒ Object
Returns the value of attribute id.
| 5 6 7 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 5 def id @id end | 
#mandatory ⇒ Object
Returns the value of attribute mandatory.
| 9 10 11 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 9 def mandatory @mandatory end | 
#maxlen ⇒ Object
Returns the value of attribute maxlen.
| 8 9 10 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 8 def maxlen @maxlen end | 
#name ⇒ Object
Returns the value of attribute name.
| 6 7 8 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 6 def name @name end | 
#pattern ⇒ Object
Returns the value of attribute pattern.
| 14 15 16 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 14 def pattern @pattern end | 
#position ⇒ Object
Returns the value of attribute position.
| 10 11 12 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 10 def position @position end | 
#restriction ⇒ Object
Returns the value of attribute restriction.
| 13 14 15 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 13 def restriction @restriction end | 
#select_field_options ⇒ Object
Returns the value of attribute select_field_options.
| 15 16 17 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 15 def @select_field_options end | 
#type ⇒ Object
Returns the value of attribute type.
| 7 8 9 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 7 def type @type end | 
#use_in_project_name ⇒ Object
Returns the value of attribute use_in_project_name.
| 12 13 14 | # File 'lib/strawberry_api/custom_metadata/custom_metadata_field.rb', line 12 def use_in_project_name @use_in_project_name end |