Class: Fictium::Configuration::Postman

Inherits:
Object
  • Object
show all
Defined in:
lib/fictium/configurations/postman.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePostman

Returns a new instance of Postman.



6
7
8
9
10
11
# File 'lib/fictium/configurations/postman.rb', line 6

def initialize
  @api_url = '{{API_URL}}'
  @example_formatter = method(:format_example)
  @default_status_names = {}
  @unknown_status_name = method(:format_unknown_status_name)
end

Instance Attribute Details

#api_urlObject

Returns the value of attribute api_url.



4
5
6
# File 'lib/fictium/configurations/postman.rb', line 4

def api_url
  @api_url
end

#default_status_namesObject

Returns the value of attribute default_status_names.



4
5
6
# File 'lib/fictium/configurations/postman.rb', line 4

def default_status_names
  @default_status_names
end

#example_formatterObject

Returns the value of attribute example_formatter.



4
5
6
# File 'lib/fictium/configurations/postman.rb', line 4

def example_formatter
  @example_formatter
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/fictium/configurations/postman.rb', line 4

def id
  @id
end

#unknown_status_nameObject

Returns the value of attribute unknown_status_name.



4
5
6
# File 'lib/fictium/configurations/postman.rb', line 4

def unknown_status_name
  @unknown_status_name
end