Class: WsdlMapper::Naming::PropertyName

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl_mapper/naming/property_name.rb

Overview

Represents a name of a ruby property, consisting of its instance variable and its accessors (attribute).

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (PropertyName) initialize(attr_name, var_name)

Returns a new instance of PropertyName

Parameters:

  • attr_name (String)

    Name for the attribute accessors

  • var_name (String)

    Name for the instance variable



10
11
12
13
# File 'lib/wsdl_mapper/naming/property_name.rb', line 10

def initialize(attr_name, var_name)
  @attr_name = attr_name
  @var_name = var_name
end

Instance Attribute Details

- (Object) attr_name (readonly)

Returns the value of attribute attr_name



6
7
8
# File 'lib/wsdl_mapper/naming/property_name.rb', line 6

def attr_name
  @attr_name
end

- (Object) var_name (readonly)

Returns the value of attribute var_name



6
7
8
# File 'lib/wsdl_mapper/naming/property_name.rb', line 6

def var_name
  @var_name
end