Class: Icss::Meta::DataAsset

Inherits:
Object
  • Object
show all
Includes:
ReceiverModel
Defined in:
lib/icss/protocol/data_asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ReceiverModel

included, #tree_merge!

Methods included from ReceiverModel::ActsAsTuple

included, #to_tuple

Methods included from RecordModel

#attr_set?, included, #receive!, #to_zaml

Methods included from ReceiverModel::ActsAsLoadable

#merge_from_file!

Methods included from ReceiverModel::ActsAsHash

#[], #[]=, #attributes, #delete, included, #keys

Instance Attribute Details

#typeObject

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

Returns:



13
14
15
# File 'lib/icss/protocol/data_asset.rb', line 13

def named? nm
  name == nm
end

#to_hashObject



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_jsonObject



20
# File 'lib/icss/protocol/data_asset.rb', line 20

def to_json() to_hash.to_json ; end