Class: Pal::Request::Metadata

Inherits:
Object
  • Object
show all
Includes:
ObjectHelpers
Defined in:
lib/pal/request/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ObjectHelpers

#attributes=, #from_hash, #from_json

Constructor Details

#initialize(opts = {}) ⇒ Metadata

Returns a new instance of Metadata.



11
12
13
14
15
16
# File 'lib/pal/request/metadata.rb', line 11

def initialize(opts={})
  @description = opts["description"]
  @version = opts["version"]
  @handler = opts["handler"]
  @name = opts["name"]
end

Instance Attribute Details

#descriptionString

Returns:

  • (String)


9
10
11
# File 'lib/pal/request/metadata.rb', line 9

def description
  @description
end

#handlerString

Returns:

  • (String)


9
10
11
# File 'lib/pal/request/metadata.rb', line 9

def handler
  @handler
end

#nameString

Returns:

  • (String)


9
10
11
# File 'lib/pal/request/metadata.rb', line 9

def name
  @name
end

#versionString

Returns:

  • (String)


9
10
11
# File 'lib/pal/request/metadata.rb', line 9

def version
  @version
end