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.
69 70 71 72 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 69 def initialize(name, version) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
67 68 69 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 67 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
68 69 70 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 68 def version @version end |
Class Method Details
Instance Method Details
#to_hash ⇒ Object
74 75 76 77 78 79 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 74 def to_hash hash = {} hash["NAME"] = @name hash["VERSION"] = @version hash end |