Class: PM::AdnNote
- Defined in:
- lib/cocoapods-byte-panglem-beta/recorder.rb
Instance Attribute Summary collapse
-
#adapter_expected_version ⇒ Object
期望加载的版本号.
-
#adapter_name ⇒ Object
Returns the value of attribute adapter_name.
-
#adapter_original_version ⇒ Object
加载的版本号.
-
#adn_name ⇒ Object
Returns the value of attribute adn_name.
-
#adn_version ⇒ Object
Returns the value of attribute adn_version.
Attributes inherited from Note
#auto_load, #auto_update, #load_detect
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(adn_name, auto_load = false, auto_update = PM::BuildConfig.update_value_non, load_detect = false) ⇒ AdnNote
constructor
A new instance of AdnNote.
- #to_hash ⇒ Object
Methods inherited from Note
Constructor Details
#initialize(adn_name, auto_load = false, auto_update = PM::BuildConfig.update_value_non, load_detect = false) ⇒ AdnNote
Returns a new instance of AdnNote.
163 164 165 166 167 168 169 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 163 def initialize(adn_name, auto_load = false , auto_update = PM::BuildConfig.update_value_non, load_detect = false) @adn_name = adn_name @adapter_name = PM::MapRelations.get_adapter adn_name @auto_load = auto_load @auto_update = get_update auto_update @load_detect = load_detect end |
Instance Attribute Details
#adapter_expected_version ⇒ Object
期望加载的版本号
161 162 163 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 161 def adapter_expected_version @adapter_expected_version end |
#adapter_name ⇒ Object
Returns the value of attribute adapter_name.
159 160 161 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 159 def adapter_name @adapter_name end |
#adapter_original_version ⇒ Object
加载的版本号
160 161 162 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 160 def adapter_original_version @adapter_original_version end |
#adn_name ⇒ Object
Returns the value of attribute adn_name.
157 158 159 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 157 def adn_name @adn_name end |
#adn_version ⇒ Object
Returns the value of attribute adn_version.
158 159 160 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 158 def adn_version @adn_version end |
Class Method Details
.from_hash(hash) ⇒ Object
184 185 186 187 188 189 190 191 192 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 184 def self.from_hash(hash) note = AdnNote.new(hash["ADN_NAME"],hash["AUTO_LOAD"],hash["AUTO_UPDATE"],hash["LOAD_DETECT"]) note.adn_name = hash["ADN_NAME"] note.adn_version = hash["ADN_VERSION"] note.adapter_name = hash["ADAPTER_NAME"] note.adapter_original_version = hash["ADAPTER_ORIGINAL_VERSION"] note.adapter_expected_version = hash["ADAPTER_EXPECTED_VERSION"] note end |
Instance Method Details
#to_hash ⇒ Object
171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 171 def to_hash hash = {} hash["ADN_NAME"] = @adn_name hash["ADN_VERSION"] = @adn_version hash["ADAPTER_NAME"] = @adapter_name hash["ADAPTER_ORIGINAL_VERSION"] = @adapter_original_version hash["ADAPTER_EXPECTED_VERSION"] = @adapter_expected_version hash["AUTO_LOAD"] = @auto_load hash["AUTO_UPDATE"] = @auto_update hash["LOAD_DETECT"] = @load_detect hash end |