Class: PM::Info
- Inherits:
-
Object
- Object
- PM::Info
- Defined in:
- lib/cocoapods-byte-panglem-beta/recorder.rb
Overview
记录Pangle SDK版本信息
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, version) ⇒ Info
constructor
A new instance of Info.
- #to_hash ⇒ Object
Constructor Details
#initialize(name, version) ⇒ Info
Returns a new instance of Info.
77 78 79 80 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 77 def initialize(name, version) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
75 76 77 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 75 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
76 77 78 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 76 def version @version end |
Class Method Details
Instance Method Details
#to_hash ⇒ Object
82 83 84 85 86 87 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 82 def to_hash hash = {} hash["NAME"] = @name hash["VERSION"] = @version hash end |