Sha256: d0428856ab0c625a8549faf6a71d133b139da7e5ef61e78c46f53b02a6b50fa7

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

module Redmine
  class Field
    def initialize(title, ref, dm=nil)
      @title=title      # The string displayed in the listing table for this field
      @ref=ref        # The attribute referenced from the issue record
      @display_method=dm    # A method used to process the value before displaying (optional)
    end
    def title
      return @title
    end
    def ref
      return @ref
    end
    def display
      return @display_method
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine-cli-0.1.6 lib/redmine-cli/field.rb
redmine-cli-0.1.5 lib/redmine-cli/field.rb
redmine-cli-0.1.4 lib/redmine-cli/field.rb