Class: MockChargebee::Util::ParsedPath

Inherits:
Struct
  • Object
show all
Defined in:
lib/mock_chargebee/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



14
15
16
# File 'lib/mock_chargebee/util.rb', line 14

def id
  @id
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



14
15
16
# File 'lib/mock_chargebee/util.rb', line 14

def resource
  @resource
end

#restObject

Returns the value of attribute rest

Returns:

  • (Object)

    the current value of rest



14
15
16
# File 'lib/mock_chargebee/util.rb', line 14

def rest
  @rest
end

Instance Method Details

#sub_commandObject



15
16
17
# File 'lib/mock_chargebee/util.rb', line 15

def sub_command
  rest.nil? ? nil : "_#{rest}"
end