Class: TopsConnect::Community
- Inherits:
-
Base
- Object
- Base
- TopsConnect::Community
show all
- Defined in:
- lib/tops_connect/community.rb
Instance Attribute Summary
Attributes inherited from Base
#data
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize
Instance Method Details
#city ⇒ Object
22
23
24
|
# File 'lib/tops_connect/community.rb', line 22
def city
data['DefaultCity']
end
|
13
14
15
|
# File 'lib/tops_connect/community.rb', line 13
def
data['CommunityID']
end
|
8
9
10
|
# File 'lib/tops_connect/community.rb', line 8
def
data['CommunityKey']
end
|
#last_synced_at ⇒ Object
34
35
36
|
# File 'lib/tops_connect/community.rb', line 34
def last_synced_at
Time.parse data['LastSyncTime'] if data['LastSyncTime']
end
|
#modified_date ⇒ Object
Also known as:
updated_at
38
39
40
41
42
|
# File 'lib/tops_connect/community.rb', line 38
def modified_date
return unless data['Metadata']['ModifiedDate']
Time.parse data['Metadata']['ModifiedDate']
end
|
#name ⇒ Object
18
19
20
|
# File 'lib/tops_connect/community.rb', line 18
def name
data['Name']
end
|
#state ⇒ Object
26
27
28
|
# File 'lib/tops_connect/community.rb', line 26
def state
data['DefaultState']
end
|
#zip ⇒ Object
30
31
32
|
# File 'lib/tops_connect/community.rb', line 30
def zip
data['DefaultZip']
end
|