Class: Icss::Meta::DataAsset
- Includes:
- ReceiverModel
- Defined in:
- lib/icss/protocol/data_asset.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
overriding ruby’s deprecated but still present type attr on objects.
Instance Method Summary collapse
Methods included from ReceiverModel
Methods included from ReceiverModel::ActsAsTuple
Methods included from RecordModel
#attr_set?, included, #receive!, #to_zaml
Methods included from ReceiverModel::ActsAsLoadable
Methods included from ReceiverModel::ActsAsHash
#[], #[]=, #attributes, #delete, included, #keys
Instance Attribute Details
#type ⇒ Object
overriding ruby’s deprecated but still present type attr on objects
9 10 11 |
# File 'lib/icss/protocol/data_asset.rb', line 9 def type @type end |
Instance Method Details
#named?(nm) ⇒ Boolean
13 14 15 |
# File 'lib/icss/protocol/data_asset.rb', line 13 def named? nm name == nm end |
#to_hash ⇒ Object
17 18 19 |
# File 'lib/icss/protocol/data_asset.rb', line 17 def to_hash() { :name => name, :location => location, :type => type, :doc => doc } end |
#to_json ⇒ Object
20 |
# File 'lib/icss/protocol/data_asset.rb', line 20 def to_json() to_hash.to_json ; end |