Class: SugoiPrettyJSON::ParsedMember

Inherits:
Object
  • Object
show all
Defined in:
lib/sugoi_pretty_json.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_key) ⇒ ParsedMember

Returns a new instance of ParsedMember.



20
21
22
# File 'lib/sugoi_pretty_json.rb', line 20

def initialize(json_key)
  @json_key = json_key.to_s
end

Instance Attribute Details

#json_keyObject (readonly)

Returns the value of attribute json_key.



18
19
20
# File 'lib/sugoi_pretty_json.rb', line 18

def json_key
  @json_key
end

#nameObject

Returns the value of attribute name.



17
18
19
# File 'lib/sugoi_pretty_json.rb', line 17

def name
  @name
end

#sourceObject

Returns the value of attribute source.



17
18
19
# File 'lib/sugoi_pretty_json.rb', line 17

def source
  @source
end