Module: Apipie::DSL::Resource

Included in:
ResourceDescriptionDsl
Defined in:
lib/apipie/dsl_definition.rb

Instance Method Summary collapse

Instance Method Details

#api_base_url(url) ⇒ Object



63
64
65
# File 'lib/apipie/dsl_definition.rb', line 63

def api_base_url(url)
  _apipie_dsl_data[:api_base_url] = url
end

#app_info(app_info) ⇒ Object



76
77
78
# File 'lib/apipie/dsl_definition.rb', line 76

def app_info(app_info)
  _apipie_dsl_data[:app_info] = app_info
end

#deprecated(value) ⇒ Object



80
81
82
# File 'lib/apipie/dsl_definition.rb', line 80

def deprecated(value)
  _apipie_dsl_data[:deprecated] = value
end

#name(name) ⇒ Object



59
60
61
# File 'lib/apipie/dsl_definition.rb', line 59

def name(name)
  _apipie_dsl_data[:resource_name] = name
end

#path(path) ⇒ Object



72
73
74
# File 'lib/apipie/dsl_definition.rb', line 72

def path(path)
  _apipie_dsl_data[:path] = path
end

#resource_id(resource_id) ⇒ Object

resource_id “my_own_resource_id”



55
56
57
# File 'lib/apipie/dsl_definition.rb', line 55

def resource_id(resource_id)
  Apipie.set_resource_id(@controller, resource_id)
end

#short(short) ⇒ Object Also known as: short_description



67
68
69
# File 'lib/apipie/dsl_definition.rb', line 67

def short(short)
  _apipie_dsl_data[:short_description] = short
end