Class: Analytics::Serializer::ObjC::UserProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/ios_analytics_cli/serializers/objc/user_property.rb

Instance Method Summary collapse

Constructor Details

#initialize(src) ⇒ UserProperty

Returns a new instance of UserProperty.



7
8
9
# File 'lib/ios_analytics_cli/serializers/objc/user_property.rb', line 7

def initialize(src)
  @src = src
end

Instance Method Details

#save(path) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ios_analytics_cli/serializers/objc/user_property.rb', line 11

def save(path)
					@class_name = 'AnalyticsUserProperty'

  @file_name = @class_name + '.h'
  output_path = File.join(path, @file_name)
					File.write(output_path, render_h)
					
					@file_name = @class_name + '.m'
  output_path = File.join(path, @file_name)
  File.write(output_path, render_m)
end